Search:

Type: Posts; User: PhHein

Search: Search took 0.12 seconds.

  1. Re: I need help explaining an OutofBounds error for a String grid I made?

    You're welcome :)
  2. Re: I need help explaining an OutofBounds error for a String grid I made?

    Yes, theres a ; behind the second for loop, i.e. it just increments j.
    If you declare the indexes in the for loop you had gotten a compilation error:


    int [][] grid = new int [4][2];
    // int...
Results 1 to 2 of 2