Search:

Type: Posts; User: Harry Blargle

Search: Search took 0.13 seconds.

  1. Replies
    5
    Views
    1,197

    Re: Problem with array values

    i changed it to:

    int h = 0;
    for(int i=0;i<10;i++)
    {
    for(int j=0;j<100;j+=10)
    {
    rects[h] = new Rectangle(offset + j, offset + (i*10), squaresize, squaresize);...
  2. Replies
    5
    Views
    1,197

    Re: Problem with array values

    Yes, like i said, the first println shows the proper x and y values on everything, the second one shows the same x and y value for everything (115)
  3. Replies
    5
    Views
    1,197

    Problem with array values

    I'm trying to get java to draw 100 squares in a grid but it's not working properly. It compiles and runs without error but it only prints 1 square. Uncommenting the println() in makeGrid() shows the...
Results 1 to 3 of 3