Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: 2D array problem

    by Norm
    Replies
    7
    Views
    1,051

    Re: 2D array problem

    nbr stands for number. It is used to generate numbers for the array from 0 to n*n-1
  2. Thread: 2D array problem

    by Norm
    Replies
    7
    Views
    1,051

    Re: 2D array problem

    For testing it will be easier to talk about the elements in the array if they were all unique. The code I posted in post#4 will generate all unique numbers.

    To see what the code is doing add a...
  3. Thread: 2D array problem

    by Norm
    Replies
    7
    Views
    1,051

    Re: 2D array problem

    Can you explain what is wrong with the output?

    A suggestion for testing. Make the changes you see here on the three lines with comments:

    int n = 4; // input.nextInt();
    int...
  4. Thread: 2D array problem

    by Norm
    Replies
    7
    Views
    1,051

    Re: 2D array problem

    Please post the program's output and add some comments saying what is wrong and show what the output should be.
Results 1 to 4 of 4