Search:

Type: Posts; User: GregBrannon

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    1,166

    [SOLVED] Re: Simple hangman game error

    You're welcome, but I don't think there's anything wrong with your memory. If my summary of Java array characteristics is not something you just know, even with an absence of a few months, then...
  2. Replies
    5
    Views
    1,166

    [SOLVED] Re: Simple hangman game error

    Java arrays are zero-based. An array that holds 10 elements has indices 0 - 9. The same array has length 10. The error is the '<=' sign. If this is news to you, review Java arrays.
  3. Replies
    5
    Views
    1,166

    [SOLVED] Re: Simple hangman game error

    This is the mistake:

    for (int i = 0; i<=word.length(); i++){

    I know you know better.
Results 1 to 3 of 3