36,051 Topics

Member Avatar for
Member Avatar for Seung Hwan

I made a json file and its contents are like these. [{"pdis": "pdistance", "time": "time", "lon": "longitude", "tdis": "totaldistance", "secsp": "sectionspray", "lat": "latitude"}, {"pdis": "0.000555", "time": "10:01:43", "lon": "126.952741667", "tdis": "0.000555", "secsp": "3343.0", "lat": "37.4805016667"}, {"pdis": "0.027396", "time": "10:01:57", "lon": "126.952753333", "tdis": "0.027951", "secsp": "3320.0", "lat": "37.4807483333"},~~~,{"~~~~~"}] I want to …

0
84
Member Avatar for m.a.x

Hi All, How can i get the swing/awt open and save dialog boxes while accessing from the client side ???

Member Avatar for JamesCherrill
0
1K
Member Avatar for Seung Hwan

My object: Take latitude, longitude columns from textfile(.txt) and mark them on googlemap api v3. For the first step, I made a code for reading textfile by javascript and html. When I run this code, chrome and IE browser open well but nothing happened. javascript part don't work. How can …

Member Avatar for hericles
0
240
Member Avatar for Doogledude123

I'm creating an application that with continuously attempt to run a list of programs until they are open. I'm having an issue when it comes to programs that require administrative priveleges however. I've done some searching and found the below script (in createElevationScript()) that *should* run a program with administrative …

Member Avatar for Doogledude123
0
4K
Member Avatar for BabaRoro

Hi all , i want to cast the output of fuzzy logic algorithm into any another type (float , int ,double..), i tried this with usual methods but there is no change.. This is the complete java code public static void main(String[] args)throws Exception { String filename = "output.fcl"; FIS …

Member Avatar for BabaRoro
0
309
Member Avatar for Roger_2

i cannot find a reliable source online that explains the proper syntax and my instructor's help is negligible. Please any insight is greatly appreciated. This is my last study guide question for my final later today! the problem is identified with arrows below. i was provided source code to a …

Member Avatar for JamesCherrill
0
552
Member Avatar for Yahson

Please assist me to create an instant messaging using java programming.

Member Avatar for JamesCherrill
0
45
Member Avatar for nitin1

Hey, I have been reading Java oracle tutorials. I read this thing. Suppose, for example, class MsLunch has two instance fields, c1 and c2, that are never used together. All updates of these fields must be synchronized, but there's no reason to prevent an update of c1 from being interleaved …

Member Avatar for JamesCherrill
0
276
Member Avatar for nitin1

Hi, I have been working in Java for more than 8-9 months now. I want to have deep understanding of Java concepts now. For ex: Collections properties, threading, interfaces detailed concepts etc. I mean I have been using all these things for a while now but want to know about …

Member Avatar for nitin1
1
299
Member Avatar for screenedcreamy

Hello, I need to extract a particular value from this html snippet. As i would not like to use any external libraries the only way to achieve this using core java is using regular expressions. As i have never used regular expressions it would be great if you could suggest …

Member Avatar for JamesCherrill
0
236
Member Avatar for Roger_2

part of my program includes my boolean 2d array: `boolean[][] matrix = new boolean[V][V];`i want to iterate through the vertex and check if it is true but am getting error: cannot convert from boolean[] to boolean. casting `(boolean)` does not help. i have also tried `boolean[v][w] == true`. here is …

Member Avatar for JamesCherrill
0
275
Member Avatar for screenedcreamy

I have some java code which calls an asynchronous REST API to finish a task that takes a while to complete, this call returns a task ID. We would need to use the task ID and trigger another REST call to retrieve the task completion status. Please suggest the best …

Member Avatar for screenedcreamy
0
161
Member Avatar for mariam_3

How can i to return the difference between two collections in java? i have to collections that contains points and complexs . point z=new point (1,2); complex x=new complex(4,5); point f=new complex(5,2); point h=new point(7,8); point k=new point (9,2); Set a=new Set (5); a.add(z); a.add(x); a.add(f); a.add(h); a.add(k); Set b=new …

Member Avatar for JamesCherrill
0
241
Member Avatar for arda_1

<!DOCTYPE html> <html> <body> <script type="text/javascript"> var images = ["strawberry.jpg", "apple.jpg", "cherry.jpg", "orange.jpg", "pear.jpg"]; var length = images.length; var randImg1 = Math.round(Math.random() * (length - 1)); document.write('<img src="' + images[randImg1] + '" >'); var randImg2 = Math.round(Math.random() * (length - 1)); document.write('<img src="' + images[randImg2] + '" >'); var randImg3 …

Member Avatar for mblan180131
0
272
Member Avatar for vilastadoori

The followign is my XML <?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML.</description> <add>yes</add> </book> <book id="bk102"> <author>Ralls, Kim</author> <title>Midnight Rain</title> <genre>Fantasy</genre> <price>5.95</price> <publish_date>2000-12-16</publish_date> <description>A former architect battles corporate zombies, an evil sorceress, and her own childhood …

Member Avatar for vilastadoori
0
2K
Member Avatar for engrjd91

I want to develop a simple java application which will take the java code input in a text area and find if there are memory leaks in it or not? Do i have to make a compiler construction code over it? or it can be done simply? Can someone guide …

Member Avatar for JamesCherrill
0
170
Member Avatar for Mar. Na.

Hi all, How can I compare between 2 strings , contain some words are same in each other and extracting the same word only ,,these 2 strings not contain spaces. For example: String1="catdogfish"; String2="dogfishmonky"; So, the result I want to get from compare them is "dogfish". Is there any way …

Member Avatar for Mar. Na.
0
291
Member Avatar for Kachour

My program was working fine until i introduced the if statement, without this "if" there are (java.lang.NullPointerException) errors . What shall i do? Thank you in advance . Here is the necessary part of code for you: Connection c ; Statement stmt =null ; if (c != null) { try …

Member Avatar for AssertNull
-1
330
Member Avatar for Rashmi_1

Hi, I needed some help with fixing my code. So basically what I am trying to implement is the following: I have 2 radio button (hours and minutes) and under each is a JTextField for each radio button. On the right side there is 2 buttons (+ and -) that …

Member Avatar for JamesCherrill
0
275
Member Avatar for Hari_11

Hi team, In hibernate one to many relation ship am updating parent setting with child data when am doing session.update(parent) (parent have set with child data) then am committing the its throwing exception saying that Caused by: java.sql.SQLException: ORA-01407: cannot update ("TPIA"."TPIA_TRANSACTION_DATA"."TRX_ID") to NULL.so please help will get appriciate.

0
238
Member Avatar for du_ebrithil

I was wondering how you would make a grid in a javascript canvas, a 10 pixel by 10 pixel grid for a game I am making thank you for your response.

Member Avatar for ryantroop
0
162
Member Avatar for Kaleena

Hello, so here is the program that I am trying to create: write a program to read a collection of exam scores, ranging in value from 0 to 100, until a sentinel of -1 should display the numer of outstanding scores (90-100), the number of satisfactory scores (60-89), and the …

Member Avatar for RudyM
0
344
Member Avatar for Riya@23

Guys I recently discovered that char array can also be printed in java without for loop and the output is a string.But when i tried the same for int array, I got some gibberish value which i though to be memory address pointed by array as it contains reference to …

Member Avatar for JamesCherrill
0
1K
Member Avatar for ColicabSyke

I am doing a simple program to calculate the first 15 fibonacci numbers and also placing an asterisk next to even numbers. My output should look like this: 1 1 2* 3 5 8* 13 21* 34* 55 89 144* 233 377 610* I can calculate the numbers easily enough …

Member Avatar for markanderson4
0
342
Member Avatar for Roger_2

I am having trouble implementing a solution using a binary search tree that returns the key of the node based on it's rank in O(N) worst case running time. Every idea i have (listed below) results in O(N^2) or sends me to a dead end. This almost seems impossible. i …

Member Avatar for AssertNull
0
1K
Member Avatar for Roger_2

i have created a recursive method that returns the size of a binary search tree, i would like to analyze the running time of my implementation but i dont know how. I know the best case is O(1) if node is null but what about worst case? my researches online …

Member Avatar for Mickey_2
0
422
Member Avatar for khaled_jawaher

Hi i have a shell script named script .sh that create maven project having parent pom and multiple modules under it as follows: #!/bin/bash mvn archetype:generate -DgroupId="com.low.co" -DartifactId="tool-release" -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE cd yeti-release mvn archetype:generate -DgroupId="com.low.cp" -DartifactId="tool-api" -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE mvn archetype:generate -DgroupId="com.low.cp" -DartifactId="tool-impl" -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE mvn archetype:generate -DgroupId="com.low.cp" …

Member Avatar for JamesCherrill
0
458
Member Avatar for du_ebrithil

I am new to coding and im having trouble with arrays in javascript. I want to be able to compare stuff inside an array but only if the three values match up to one of the sets of three values in the array var array = [[1,2,3][4,5,6][3,6,7]] if(array.indexOf([1,2,3]) === 1){ …

Member Avatar for AndrisP
0
267
Member Avatar for nitin1

Hi all, Actually, this question is not related to some coding or logic from my project. But, as I am doing hard and harder projects (acc. to me & my exp.), I am focussing more on design part of my projects. When I present my design to team members for …

Member Avatar for JamesCherrill
0
1K
Member Avatar for infiniteloop56

Hi guys, I am a computer science major and I have been asked to complete a task for someone working in the school of public health at my university. Basically I have to go to this website: ///////////////////////////////////////////////////////////////////////////// [Click Here](https://www.healthcare.gov/find-premium-estimates/#results/&aud=indv&type=med&state=PA&county=Allegheny&age0=35&employerCoverage=no&householdSize=1&income=100000) ///////////////////////////////////////////////////////////////////////////// and gather all the information which displays after the …

Member Avatar for ajahar
0
400
Member Avatar for lisandroivan
Member Avatar for </scorpion>

Hi Experts, I want to export html table to .csv file, my code is working but i want to export it with border or background color on its header. how will i do that? Please help me. Thanks in advance. :) Here's my code: HTML Table: <div id="feedback_div" style="display: none;"> …

Member Avatar for </scorpion>
0
3K
Member Avatar for Prashant_9
Member Avatar for nadiam

Hi. Im trying this java program that's suppose to register the "staff"'s "car" and there's this boolean method that I don't know how to solve. There are 3 classes: Tester, Staff and Car. the boolean part is suppose to check if the staff has 1 or 2 cars registered and …

Member Avatar for AssertNull
0
252
Member Avatar for nadiam

Hi. I have these exercises to do, to write the output of some coding given. I can compile it in eclipse but doesn't mean i understand. can someone please explain this code to me. thank you. int[] arrayA = new int[3]; //this part i know, create array size 3 int[] …

Member Avatar for JamesCherrill
0
331
Member Avatar for Jelo

I have been trying two save data into mysql database using hibernate but it have been giving me an error. Could someone give a solution to this. Following is the servlet code and hibernate configuration servlet package ac.ke.schoolsystem.controllers; import java.io.IOException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; …

0
135
Member Avatar for Hari_11

when i save my object in hibernate session.save(obj) getting this exception. (SqlExceptionHelper.java:127) SQL Error: 1747, SQLState: 42000 (SqlExceptionHelper.java:129) ORA-01747: invalid user.table.column, table.column, or column specification (AbstractBatchImpl.java:193) HHH000010: On release of batch it still contained JDBC statements (SessionImpl.java:2994) HHH000346: Error during managed flush [could not execute statement]

Member Avatar for AleMonteiro
0
538
Member Avatar for prakash2813

Hi there, I have a class definition like : class Student{ String name; int sub1; int sub2; int sub3; //... } I have list of all students. I want to get count, average, min, max etc using IntSummaryStatistics. Below is the code for sub1: IntSummaryStatistics sub1Summary = students.stream().collect(Collectors.summarizingInt(s -> s.sub1)); …

Member Avatar for prakash2813
0
275
Member Avatar for vivekH

how to interact in multiple modules, can anyone suggest any link or tutorial

Member Avatar for stultuske
0
140
Member Avatar for michael_51

Another common statistical measure is the standard deviation, which provides an indication of how the indivdual values in the distribution differ from the mean. to calculate the standard dev. whose element are x1, x2.....xn you need to perform the ff steps a. calculate the mean of the distribution b. go …

Member Avatar for stultuske
0
167
Member Avatar for Jendalin23

Hello, I have no experience experience with Java programming and I spend more time lost than anything. I have made an attempt at my week's assignment but I am stuck. Here is the run down of my assignment for that week **"Write a Java application using an Integrated Development Environment …

Member Avatar for AssertNull
-1
633
Member Avatar for Abdennour

hey ,i am new to the site as java bluej , i have drawn a flag using bluej using many objects like circle and rectangle ... i wanna combine the objects into one to move it together , what should i do ? the code source: /** * This class …

Member Avatar for JamesCherrill
0
232
Member Avatar for Violet_82

Hi guys, I wonder if you can help me at all. As some of you will know I do a bit of java development here and there but unfortunately I don't really have any programming background, like, I haven't studied computer science - I just learned (well, that's an overstatement) …

Member Avatar for Violet_82
0
277
Member Avatar for Zaal

Hey guys, I want to ask which captcha service is a better? im using right now DBC, but it is not so good, can someone recommend better service for recaptchas 4x4? Thanks

Member Avatar for happygeek
0
201
Member Avatar for Kubilay Doğukan

I'm getting my ArrayList from a service and populate my ListView with it when user creates the widget. I have 3 button on my widget and I want to modify/filter the data in the ListView by button click. I saw examples of pending indent but I couldn't reach my ArrayList …

Member Avatar for Kubilay Doğukan
0
347
Member Avatar for KrullFX

I am new to programming and I am trying to fix the Java code errors below and no matter what I do I cannot get it to compile and run. Would anyone mind helping me with this and explain what I am needing to do. Thank you. import java.util.Scanner; public …

Member Avatar for JamesCherrill
0
342
Member Avatar for nunu_psu

Greetings everyone, I'm still new to android programming and currently leanrning how to connect to DB. I'm following a online tutorial but I'm still facing problems. The tutorial is about creat a registration form and sending it to the database through volley. I'm using .hostinger.ae as host and Android studio. …

0
191
Member Avatar for nitin1

Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" name="status_2" value="1" /> <input type="hidden" name="status_3" value="0" /> <input type="checkbox" id="status_3" name="status_3" value="1" /> <input type="submit" /> </form> I was …

Member Avatar for AndrisP
1
512
Member Avatar for prakash2813

Hello there, I am writing a data structure and restricted not to use any API or collection. I have written a Sorted Linkedlist, which stores strings in ascending order. Basically I am writing a dictionary, which can be easier to implement by Map, HashMap or Dictionary provided by Collection API, …

Member Avatar for rubberman
0
282
Member Avatar for Mar. Na.

Hi all; How can i ordering files in the package ,,,,java netbeans ordering files by name ,,, i want to move up or down to exganges positions of files in package.... i press click on it and move up or down but isn't work....!!! example: package filename: A.java B.java C.java …

Member Avatar for Mar. Na.
0
388

The End.