Java (not to be confused with JavaScript) is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).

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

0
votes
0answers
7 views

Whole item distribution by ratio

The goal: Say I have X workers in a fruit plantation. At the plantation they're growing apples, pears and grapes. At the end of the day, the foreman grades each workers with a ratio. The total of ...
0
votes
2answers
17 views

Array list intValue()

Hey i have an array list of numbers and when i try to convert into int i get The method intValue() is undefined for the type Object error. This is the code snippet. while (1>0) { a = ...
0
votes
1answer
11 views

ClassNotFoundException on Dropbox

I am trying to load a Java applet onto a website, using: <applet code="snakeApplet.class" archive="SnakeApplet.jar" width=640 height=480> Note: snakeApplet.class has lower case 's' and ...
0
votes
3answers
24 views

Any prescribed way to view java source code?

By source code , i mean the actual CODE inside all the .java files packed up into the src.zip located inside the jdk folder. Should i Import the entire thing into eclipse and see from there ? Or is ...
0
votes
2answers
21 views

conditional operator usage in the below code

I was using the conditional operator as shown below.. String AccessType = (a.isActive() && b.isActive() ? "Active" : "NotActive"); Now I want that if a.active is true and b.active is also ...
0
votes
0answers
7 views

How to pack/unpack(read) idx files?

Note: Using java. I've been searching almost all day on a way to pack an idx file. I only found something on another website & they told me to rip it from something called an RSPS?... I just ...
0
votes
0answers
7 views

Struts2 Action execution and response through AJAX

I am trying to send an AJAX post request via jquery to a Struts2 action class for processing a form and recieving json response, but I haven't figured our how to do it. I first made the form and set ...
0
votes
2answers
14 views

How to implement a JDBC database into a Gui program to authenticate a user and password for logging into the program

I'm currently making a gui program and I'm clueless to how I am meant to set up my program so when the user inputs a username and password, and then clicks the login button it checks the database for ...
0
votes
1answer
20 views

Apk not appearing on android

I just finished a project. It has successfully compiled and debugged, and until yesterday it worked fine on my phone. I made some changes to the module name, label etc. And now when I run it, it opens ...
-2
votes
1answer
15 views

How to use Base64 in Java project to codify/decodify an image

I'm doing a simple Java project with one image. I need to encode and decode an image in base64. I have read different solutions but they don't really work or maybe I don't know how to get them to ...
0
votes
1answer
23 views

Reading in a text file upto specific number of characters

::A Newbie here:: I've a text file having text like COM22: 15:55:09 20.09.2013VOLT=224 I want to read this line and separate it to get 15:55:09 20.09.2013 and then Volt=224 At this time I'am ...
2
votes
5answers
39 views

Is manual object deletion possible in Java?

In some languages like Python, there are ways by we can "delete" an object from the heap explicitly. As for example: s = "This is a Test" del s Now, the object s cannot be used anymore. Now, my ...
0
votes
0answers
10 views

Is there some existing Emacs plugin somewhere that can help highlight Java bytecode? [on hold]

The current project I am working on requires reading a lot of Java bytecode. I use emacs as my main editor, so I am just wondering if there is existing some plugin that would highlight bytecode in ...
0
votes
2answers
13 views

Difficulty with some debugging of a code that calculates the discount you would get with various membership levels

Over all, this code is supposed to ask for the customers name, member level, and original purchase price. It should store all of those in their respective variables, if something other than an ...
0
votes
0answers
6 views

Add library on IntelliJ - Android Development

Im getting this errors: Error(3, 19) package android.app does not exist Error(4, 18) package android.os does not exist Error(6, 33) cannot find symbol symbol: class Activity Error(11, 26)cannot ...

15 30 50 per page