for (string item: wordArray) {
if (inputWord.equals(wordArray)
JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
}
Am I getting warmer...
Type: Posts; User: Idiot_willing_to_learn
for (string item: wordArray) {
if (inputWord.equals(wordArray)
JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
}
Am I getting warmer...
But how do you use a loop on a string array? I'm not sure how to use a loop to get it to search the whole array?
So after reading through that and thinking... should I use an if statement? Such as if(inputWord.equals(wordArray))? But then I'd have to have some sort of loop that has it check the entire list of...
I have a code with an array of words. The program asks the user to type in a word. The program should then search through the array and see if the word exists in the array or not. If it does exist,...
I ran it on Eclipse and it worked fine. I guess Terminal doesn't do GUIs?
^I have no idea what the message means. :(
Huh... looking at my applications, it seems that Java VisualM came with the Macintosh. Does that mean anything?
Thanks for the link.
So I have to have this Java Platform on my computer in order for the JOptionPane to work?
Edit: API doc?
It is a small program that I just used just to see if the JOptionPane would work. It compiles. When I run it, it displays what I quoted in my original post
import...
Hey guys,
I wrote a program that required the use of JOptionPane. The program compiled without an issue. However, when I try to run it, I get these error messages:
Exception in thread "main"...
Well if I just replace the 'for' with a 'while' it definitely wouldn't work.
If I want it to print out the temperatures 0.0, 5.0., 10.0, 15.0, ... 40.0, I'm guessing I definitely have to say...
Hello, extreme Java idiot here.
For lab, we had to have the program output to the console screen the conversion of 98.6 degrees Fahrenheit to celsius. I did that.
Then we had to have it print the...