Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and run-time environment (JRE). Java programs are compiled to byte-code and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

learn more… | top users | synonyms (6) | java jobs

0
votes
0answers
3 views

How to stop JFace dialog from closing after dialog.open()

I have a JFace dialog and this is how i'm opening : SampleDialog dialog = new SampleDialog(shell); if(Window.OK == dialog.open()) { // do something if(condition) { MessageBox ...
0
votes
0answers
7 views

Java NIO : Sending more than 16 objects causes error

I have a socket program written in Java that uses NIO. I am trying to send a list of objects. I am doing that by sending the objects in the list one by one. These are the steps that I am following: ...
-1
votes
2answers
17 views

BufferedReader file not found

This is my code snippet: static String filepath = "test.txt"; public static void main(String[] args) throws IOException { try{ BufferedReader reader = new BufferedReader(new ...
0
votes
1answer
27 views

String vs StringBuffer in Java

After a long research , I got to know that String is immutable .String Buffer is more efficient than String if the program involves many computations. But my question is slightly different from these ...
0
votes
0answers
3 views

Delete amazon s3 object by versionId using rest API

I am trying to delete amazon s3 object using rest API but not getting any success. I have created the URL(signed url) at server side using java and then made XHR request to that URL at client ...
0
votes
0answers
27 views

display all the names in team1 and team2

Here is the situation. The User will insert names in team1 and team2 via User input then the program will display all the names of TEAM1 and TEAM2. I have a problem in my display methods, because they ...
0
votes
0answers
3 views

reading csv file in Java without a delimiter specified during table export command?

I am exporting set of columns from DB2 Table using the below export command to a csv file. Later I am trying to read the above csv file line by line based on the columns using a Java program. But ...
0
votes
3answers
28 views

how do i make a scanner variable become an array?

How would I possibly do this? I'm trying to do this but it says the param is string and it's requires string[] here is my code : import java.util.Scanner; public class Launch { public static ...
-9
votes
0answers
25 views

How i manage time for game development and web development both? [on hold]

I have learned corona sdk to much....but i love to learn web development, app development(Android,IOS).I know java,lua. Actually corona SDK is pretty easy i can make any game in that in no time but I ...
1
vote
1answer
19 views

Is it possible to get the raw bits in memory of a double?

I was just trying to convert the following methods that I wrote in C/C++ to Java. In short, the code provides a very efficient way of calculating the indices of the left-most and right-most bits of a ...
0
votes
1answer
25 views

how to preserve newline character in a string after converting to bytes?

String str[] = {"1000458551||A210171046D86F9F6EE21B66FE9B1441E20EC1DEF9654A2D092162591C01D26F||1||7707||0||" + "0||1002||1373569142000||HTC ...
0
votes
1answer
15 views

Reading from serial port in java

Hi I am reading data from a multimeter and I have to store those values in float. I am using javax.comm jar file for it and Serial port. But after reading from it I am getting values like enter code ...
0
votes
0answers
9 views

Calculating FPS in java with a thread?

Trying to figure out where to go from here. My update code is contained in my GameThread class, while my paint code is contained in my GamePanel class (which extends JPanel). I want to be able to ...
0
votes
1answer
3 views

AspectJ load time weaving not working on Spring beans

I'm working on a project that uses the Java (not xml) flavour of Spring configuration for wiring up dependencies. It also has profiling logic that should be weaved via AspectJ onto the desired methods ...
-1
votes
1answer
25 views

Beginner Arithmetic Math Operations (Java)

The question says 5 / 3 * 2.0 / (4 % 3) + 5 = 7.0 For some reason I don't understand who this makes sense at all. I start with dividing 5/6.0 = .83 then divide by (4%3 which is 1) and add 5 but I'm ...

15 30 50 per page