print tab help

Discussion in 'Java' started by minifish, Dec 3, 2008.

  1. minifish

    minifish

    Joined:
    Oct 29, 2008
    Messages:
    8
    Hello,
    when I do:
    System.out.println("out.txts\t\t"+"asdf");
    System.out.println("out.txt\t\t"+"asdf");

    I get:
    out.txts asdf
    out.txt asdf

    I have also tried printf.
    Is there a way to align the two print result without adding an extra \t for out.txt?
    minifish, Dec 3, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hermit Dave
    Replies:
    0
    Views:
    432
    Hermit Dave
    Jan 22, 2004
  2. News Sympatico
    Replies:
    0
    Views:
    306
    News Sympatico
    May 21, 2005
  3. ajikoe@gmail.com

    tab 2 into tab 4 ?

    ajikoe@gmail.com, Jun 19, 2005, in forum: Python
    Replies:
    2
    Views:
    321
    ajikoe@gmail.com
    Jun 19, 2005
  4. keto
    Replies:
    0
    Views:
    924
  5. David Cournapeau

    print a vs print '%s' % a vs print '%f' a

    David Cournapeau, Dec 30, 2008, in forum: Python
    Replies:
    0
    Views:
    345
    David Cournapeau
    Dec 30, 2008
Loading...

Share This Page