Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and runtime environment (JRE). Java programs are compiled to bytecode 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
7 views

Android Java - How to run the main method idea?

So basically im learning android for the first time. And i have this java file which has all the methods and the main method which runs all these methods and prints out something for me. I sort of ...
0
votes
1answer
6 views

wrong Reading with BufferedReader

I have problem with reading data from file. In each line (except first) first char is lost! Maybe i have troubles with coding, but i try to set UTF-8, UniCode, ANSI, and result is fast the same... ...
0
votes
0answers
26 views

How do I mimic the class oriented approach of Java/C++ in C?

This is what I want to do: 1) I want a function that instantiates a data structure. void instantiateCDB(void); 2) I also want a function that updates the data structure that is instantiated and ...
1
vote
4answers
35 views

why casting double to int is possible but casting double to String is not possible?

I convert other type to String by String.valueOf() like following: String s = String.valueOf(2.5); i also convert double to int by casting like following: int i = (int) 2.5 ; i want casting ...
-6
votes
0answers
23 views

Please send me java Sockect program for sending the byte array data from client and getting back float data from server to client [on hold]

Please send me java Sockect program for sending the byte array data from client and getting back float data from server to client.
-2
votes
1answer
22 views

This app can't run on your PC, to find a version of your PC check with the software publisher

when I am trying to install jdk(set up file) on my system(windows 8) I am getting the following error, This app can't run on your PC, to find a version of your PC check with the software publisher. ...
0
votes
2answers
14 views

java.lang.IllegalStateException: Could not find a method onClick(View)

Hi I'm new to android programming and I can't figure out my error. Iv' been trying this since yesterday it executes correctly when I put it after I click Play on my activity_thesis.xml but in the ...
0
votes
2answers
13 views

Method to find all indices in List<Long> corresponding to some element

Suppose I have an long called X and a List<Long> called foo which contains X as one non-unique element among many elements. What is the method I need to apply to find all the indices in foo that ...
0
votes
0answers
6 views

Java/Swing GUI not refreshing when using JTabbedPane

So I was trying to use JTabbedPane and I started with a simple program, wich displays three tabs and for each tab a different label. Here is the code: import java.awt.Dimension; import ...
0
votes
1answer
13 views

Java: How to delete a row and edit any saved data on JTable and update it to mySQL database

I am making a dummy of an enrollment system where you input or delete any student information by means of JTextBox. I have so far allowed my program to add data. My problem that I am attempting my ...
0
votes
0answers
7 views

Java 1.7.0_40 and unsigned Applet

On one of my workstation machines (but not on the other) using Java 1.7.0_40 and adding any -D setting (such as -Dmykey=myvalue) to the "Runtime Parameters" of the "Java Runtime Environment Settings" ...
-2
votes
1answer
10 views

Which one .readUTF method in DataInputStream will proceed first?

If I call two .readUTF methods of one DataInputStream object in two different streams, which one will read information first? Which was called first, or which was called second?
0
votes
1answer
12 views

Library for HttpGet in java

I have this code: package sig; import org.json.JSONObject; public class MyService extends java.lang.Object{ public JSONObject getLocationInfo( double lat, double lng) { HttpGet ...
0
votes
2answers
18 views

how to compare two HashMap keys when First HashMap contains some words matching with second HashMap

First HashMap contains Keys like [111, 112, 113, 114, 115] Second HashMap contains Keys like [Mon 111, Tue 111, Wed 112, Mon 112, Fri 115] Values of both HashMap are differents, ...
-1
votes
1answer
9 views

How to set all image captured from Android of same file Size programatically

When I am trying to save image from Camera, I found each time I am getting different different file size like 98Kb , 99Kb , sometime even 75KB. I want identical size of all image saved from my ...

15 30 50 per page