Search:

Type: Posts; User: beginner123

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,466

    Re: how do you compare words?

    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...
  2. Replies
    12
    Views
    1,466

    Re: how do you compare words?

    not really sure how to do that.
    i tried this in the jTextArea1KeyReleased event:


    if (Words.equals(Words))
    {
    generateNextWord();

    }
  3. Replies
    12
    Views
    1,466

    Re: how do you compare words?

    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...
  4. Replies
    12
    Views
    1,466

    Re: how do you compare words?

    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;
  5. Replies
    12
    Views
    1,466

    how do you compare words?

    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,...
Results 1 to 5 of 5