Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    2,163

    Re: Formatting 2d Array Output

    My code was not intended to be usable as posted. It was just an idea of how to do it.
  2. Replies
    5
    Views
    2,163

    Re: Formatting 2d Array Output

    Something like this?
    System.out.printf("Day %5.0f <Descriptor here> %5.0f\n", numberArray[i][j], numberArray[i][j+1]);
  3. Replies
    5
    Views
    2,163

    Re: Formatting 2d Array Output

    Please post the code you are having problems with. The printf() method should be able to print multiple values on multiple lines.
Results 1 to 3 of 3