I am currently a Junior earning my Bachelor's in Mathematics and Computer Science at Coe College. I do everything I am suppose to do, but nothing above and beyond. My question to you all is: What...
Type: Posts; User: Zyrion
I am currently a Junior earning my Bachelor's in Mathematics and Computer Science at Coe College. I do everything I am suppose to do, but nothing above and beyond. My question to you all is: What...
THANK YOU!
Example: The input is the entire entity of data inside the code tags. So if I wanted to extract only [variableNameHere] from this piece of data. The set of characters I desire are after...
I have an assortment of information from a buffer that I need to pick apart. I have spent hours trying to figure this out, my code works but it is chunky, large, memory inefficient, and overall poor...
I believe I have found a re-usable solution. By creating a Java wrapper for the C++ class.
JNI- Subclass a C++ class in Java using JNI
I shall return with questions if I am having trouble...
At the moment, I am writing a C++ application that has successfully fired events from particular key bindings set to my game application. However, I am having trouble getting my java classes to...
My intentions are not to record the key strokes of a user maliciously (if that is what it seems like.) I was just giving an example. Let me clarify, I have a computer game application that runs...
I read the article about the key listener, particularly the event of 'The typing of a unicode character.' From what I have learned, a key listener event is fired from a component, when it is in...
In my program, I am trying to capture a particular set of keys. In theory, I would like to set up a thread and buffer that will scan through the input send by the keyboard. When a match is made, it...
Instead of making assumptions on my ability to research a problem please be more constructive and less defaming. It would be much appreciated. I am currently reading a Java programming book that has...
I have an image inside my resource folder used by BlueJ that I want to paint onto the display area of my JFrame object. The issue I am having is copying the image data (i.e. "Grass.jpg") from my...
With a little bit a manipulation it's a perfect method for this problem.
Just remember that when using Math.random() from the java.lang.Math class is that it returns a static double value. So...
Nice to meet you, I hope to see you in the forums soon!
Indent your code and wrap code blocks around it for readability.
1. What results are you expecting? What results have been produced?
2. Yes it is possible to adjust the size of a JTextArea.
...
Your problem seems very vague. Do you have a question?
Goal 1: I want to get the user's guess.
Tip: Using I/O, get the users guess and store it inside an integer variable.
Goal 2: I want to get a random number.
Tip: Using the random class, using the...
Your program code is initiated sequentially, line by line. So what do you think happens when your IDE runs your the first statement in the main method of the code.
//You are declaring these...
Show what code you have done so for. Make sure to put it in code tags as well.
[C0DE=java]
<code here>
[/CODE]
You are using the reference 'kb' to the class, Scanner I assume. You are attempting to use a method that is nonexistent in that specific class.
Take a look here for more information on the...
Please put your code in tags.
[code=java]
<Code here>
[/C0DE]
Tamilarsi take a look at http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
Usually when your compiler receives a NullPointerException, it is when you are trying to use a object that points to a null value.
Please wrap your code in tags in order to highlight formatting.
[C0DE=java]
<code>
[/CODE]
It seems you are trying to use multiple-exception catches. What problems are you having exactly? What errors is your compiler throwing at you, if any?
try {
// stuff
} catch (Exception1...
What exactly are you having issues with solving? What code have you done so far (even pseudo-code)? Please post it so we can tell exactly where you are struggling at.