What does this mean
In the following if clause what does boolean _tmp = selectedLightBalls[i] == 0 mean I understand that _tmp is the name of a boolean variable but I do not understand the = selectedLightBalls[i] == 0...
View ArticleWhere do I get Java and how to install it
I need to install Java so I can test some Java applets.
View Article2D Boolean Arrays?
I'm writing some code to display a 4x4 2D boolean array in a console. Both the far left and far right columns can contain true values while the middle values remain false. Printing in the console can...
View Articleprint array in the shape of a figure 8
Hi I have an java project which prints an array using the follwing loop: Code: String tempString2 = ""; for (int i=0; i<19; i++) { tempString2 = tempString2...
View ArticleNeed an explanation of a java function
Hello Java lovers, I have query about java hashcode method what is difference in between hashcode and array.hashcode what is the output of hashcode("a") and array of hashcode("a","b") Actually i don't...
View ArticleJava on Android Decoding a string
I'm calling IIS web methods from a java app on an Android device. The IIS web method returns a JSON string that looks like this: Code: {"d":"{\"login\":true,\"success\":\"\",\"message\":\"\u003cbr...
View ArticleHow do I get the username of the person who is currently using the computer?
I'm developing a Java application that is supposed to be able to figure out who's currently using the computer and log him or her out. The app is supposed to run under an administrator account that the...
View ArticleI created a number guessing game in Java.
Just thought I'd share this quick app I made in Java. You guess a number between 1 and 10. If your guess is correct, you earn a point. If it is incorrect, you lose a point. You can try again as many...
View ArticlePKCS7 Digital Signature
Hello New to Java here coming from .NET Trying to implement PKCS7 signing using Java similar to a previous .NET implementation. Problem is am not able to get the same output. Same keystore converted...
View ArticleJava applet -> Adapter class...
Ok A bit further into the book now, and it's shown how to do mouse and keyboard functions. Then cut them down more to using adapters. As its challenge, it says try putting in the keyboard listeners...
View Articlestream pipeline with I/O channel as source?
Java 8 has a new Stream interface and the docs say, "To perform a computation, stream operations are composed into a stream pipeline. A stream pipeline consists of a source (which might be an array, a...
View ArticleCome lavorare con Java - How to work with Java
Hello everyone my name is Maurizio and my problem is this: more than a real problem I would like to know this! I would like to learn the fundamentals of working with Java. But since not nor understand...
View Articlethis.getClass().getName() and underscore
Hi Easy one for you but I seem to be hitting a brick wall on finding the answer... running the code : Code: String s = this.getClass().getName(); However this is running from a jsp file and I've named...
View ArticleNetBeans > JFrame > control
Hi I am getting to use the NetBeans and Java proper (instead of the framework on a server). However, this poses different problems. First one I have is this: I have created a form using NetBeans. In...
View Article