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,...