Search:

Type: Posts; User: Norm

Search: Search took 0.18 seconds.

  1. Replies
    8
    Views
    2,506

    Re: 2 dimensional array coding

    Please put your code in code tags like this:


    Scanner input = new Scanner(System.in);

    int[][] m = new int[3][4];
    System.out.println("Enter 2 dimensions" + m.length);

    for (int i = 0; i <...
  2. Replies
    8
    Views
    2,506

    Re: 2 dimensional array coding

    First you need to read what the user enters.
    Read the API doc for the Scanner class. It has methods to read input from the user.
    Also search here on the forum for Scanner examples.
    Once you get...
  3. Replies
    8
    Views
    2,506

    Re: 2 dimensional array coding

    As I suggested before, type in some examples from the book and make changes to them and see what happens.
  4. Replies
    8
    Views
    2,506

    Re: 2 dimensional array coding

    That's what books are for. Read about a technique and then key the examples and change them this way and that way to see what happens.
    Does the book provide any examples you can type in?
  5. Replies
    8
    Views
    2,506

    Re: 2 dimensional array coding

    Can you post your code with questions about the problems you are having?

    Where is the 2 dimensional array in all this?
Results 1 to 5 of 5