yes i know using if (Words.equals(Words)) is wrong. I know i need some kind of loop.
I thought maybe i would use the jTextArea1KeyReleased event so when the last letter of the word being typed is...
Type: Posts; User: beginner123
yes i know using if (Words.equals(Words)) is wrong. I know i need some kind of loop.
I thought maybe i would use the jTextArea1KeyReleased event so when the last letter of the word being typed is...
not really sure how to do that.
i tried this in the jTextArea1KeyReleased event:
if (Words.equals(Words))
{
generateNextWord();
}
here is my code for the array:
Random r = new Random();
public int randomNumber;
public String[] Words = new String[10];
public int WordCounter=0;
public int...
ok here is some of the code:
this is my basic array with 10 words
public int randomNumber;
public String[] Words = new String[10];
public int WordCounter=0;
I am trying to make a typing game where random words come on the screen and the user has to type the word out in the textarea.
I created an array with 10 words which a displayed using a label,...