Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    2,076

    Re: Easy Help...Printing out the alphabet.

    Your code is printing out the columns of each row in the array row by row. You need to change the contents of the array is you want to see something different.
    Your array has As in all columns of...
  2. Replies
    13
    Views
    2,076

    Re: Easy Help...Printing out the alphabet.

    How do the rows go in your array? Are they the first dimension indexed by i?

    Try reversing i & j: alpha[j][i]
  3. Replies
    13
    Views
    2,076

    Re: Easy Help...Printing out the alphabet.

    What does it print out? What is wrong with what it prints out?
  4. Replies
    13
    Views
    2,076

    Re: Easy Help...Printing out the alphabet.

    That is different than you said:
    That would be:
    A
    B
    C
    D

    Rows go down, columns go across.

    You can define a 2D array in a statement like this:
  5. Replies
    13
    Views
    2,076

    Re: Easy Help...Printing out the alphabet.

    I assume that those letters go in the first column on each row. What goes in the other four columns on the row?
    If there are 10 rows then the letters will go from "A" to "J".
  6. Replies
    13
    Views
    2,076

    Re: Easy Help...Printing out the alphabet.

    Can you explain why you need an array to print out what you have posted?
    A simple loop like this will print it:
    for (int i=0; i < 10; i++)
    System.out.println("A B C D E");

    You can define a 2D...
Results 1 to 6 of 6