Search:

Type: Posts; User: KucerakJM

Search: Search took 0.22 seconds.

  1. Replies
    8
    Views
    1,551

    [SOLVED] Re: Output in columns

    Your format string, as it stands, creates a 15 character left justified column(type string); a 20 character right justified column (type string); then another 20 character right justified column...
  2. Replies
    8
    Views
    1,551

    [SOLVED] Re: Output in columns

    Alright, that clears some things up. That isn't quite the correct way to use printf()'s formatting capabilities. The basic syntax would be:
    System.out.printf("format string", data1, data2,...
  3. Replies
    8
    Views
    1,551

    [SOLVED] Re: Output in columns

    Did you happen to look at any documenation before trying to use printf? It isn't used exactly like the other print commands so System.out.printf(t[i]+n[i]+s[i]) would definitely not give you what you...
  4. Replies
    8
    Views
    1,551

    [SOLVED] Re: Output in columns

    Look into System.out.prinf().
Results 1 to 4 of 4