32,204 Topics
| |
I have a basic question. I collected some gps signal to some columns by python code. I want to read them and use some data in html-javascript. In this case, what kind of file is the easiest to read and use in html/javascript?? I made a text file but people … | |
I have a char array which need to check each and every character untill there is no more character to check, so in C usually we write as: for(i=0;my_num_Array[i]!='\0';i++) { // some code here } But when i tried the same for java it isn't working! Any idea what should … | |
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 … | |
Hi All, How can i get the swing/awt open and save dialog boxes while accessing from the client side ??? | |
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 … | |
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 … | |
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 … | |
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 … | |
Please assist me to create an instant messaging using java programming. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
<!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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … |
The End.