Search:

Type: Posts; User: melki0795

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,547

    [SOLVED] Re: Output in columns

    thanks man, I got it, I always used to find formatting a bitch heh.

    Thanks
  2. Replies
    8
    Views
    1,547

    [SOLVED] Re: Output in columns

    and would this work, if t[i] are Strings of different lengths? What is happening, is that my output is shifting here and there.

    2750

    This is the Format string i used: String formatString = "...
  3. Replies
    8
    Views
    1,547

    [SOLVED] Re: Output in columns

    I did, but when I use them, all i get is the t[i] written in a line :/



    for(int i = 0; i < 5; i++) {
    System.out.printf(title[i],"%20s", name[i], "%20s",subAmounts[i]);
    }
  4. Replies
    8
    Views
    1,547

    [SOLVED] Re: Output in columns

    Just outputs all messed up o.O
  5. Replies
    8
    Views
    1,547

    [SOLVED] Output in columns

    Hi,

    Any way i can format this output into columns?



    for(int i = 0; i < 5; i++) {
    System.out.println(t[i]+n[i]+s[i]);
    }
Results 1 to 5 of 5