Results 1 to 9 of 9

Thread: Spacing....

  1. #1
    micolord is offline Member
    Join Date
    Sep 2011
    Location
    Philippines
    Posts
    41
    Rep Power
    0

    Default Spacing....

    Yeah this is very basic but I have forgot it oh crap how to space words using commands... ):

    Java Code:
    public class IFORGOTHOWTOSPACE
    {
    {
    System.out.println("\\t") // i totally forgot
    }
    }
    Last edited by micolord; 10-08-2011 at 06:50 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

  3. #3
    LogicBrix is offline Member
    Join Date
    Oct 2011
    Posts
    16
    Rep Power
    0

    Default Re: Spacing....

    Quote Originally Posted by micolord View Post
    Yeah this is very basic but I have forgot it oh crap how to space words using commands... ):

    Java Code:
    public class IFORGOTHOWTOSPACE
    {
    {
    System.out.println("\\t") // i totally forgot
    }
    }
    System.out.println("\\t");

  4. #4
    micolord is offline Member
    Join Date
    Sep 2011
    Location
    Philippines
    Posts
    41
    Rep Power
    0

    Default Re: Spacing....

    Printing a score is what I am doing and it is not getting align right for example:
    Java Code:
    System.out.println("ScoreA:       ScoreB:          ScoreC:");
    System.out.println(scorea+"         "+scoreb+"         "+scoreb+);
    /* 
    so instead of using SPACE to align them I want
     to use the command instead that I forgot
     because it aligns it perfectly unlike the space
     it is less accurate
    */

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

  6. #6
    micolord is offline Member
    Join Date
    Sep 2011
    Location
    Philippines
    Posts
    41
    Rep Power
    0

    Default Re: Spacing....

    Maybe you know the code I have forgotten I just want to align it simple..............................

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Spacing....

    Quote Originally Posted by micolord View Post
    Maybe you know the code I have forgotten I just want to align it simple..............................
    I do, but this is not a "give the code service". You can learn the code by clicking on the link above, and then if you get stuck show your effort and we'll try to help you.

  8. #8
    micolord is offline Member
    Join Date
    Sep 2011
    Location
    Philippines
    Posts
    41
    Rep Power
    0

    Default Re: Spacing....

    The code I wanted to remember wasn't there. Can you just show me please? It is just simple that I think I'm the only one who'd forget it. Just a simple System.out.println(); and when I saw it everything should flash back to me.

  9. #9
    micolord is offline Member
    Join Date
    Sep 2011
    Location
    Philippines
    Posts
    41
    Rep Power
    0

    Default Re: Spacing....

    All I asked was a little bit of help but instead of answering me you gave me an out of this world answer you could've just type what I asked that I have forgotten it is a very simple easy question. I have remember it 3 hours after I posted this question.
    Java Code:
    System.out.println("\t"+"Something here");
    or you could've just fixed the example I have posted.

    Java Code:
    System.out.println("\t"+"Write something here nuff said.");

Similar Threads

  1. [Q] Spacing Help
    By iriscience in forum New To Java
    Replies: 7
    Last Post: 02-08-2011, 01:44 AM
  2. digit spacing
    By puk284 in forum New To Java
    Replies: 3
    Last Post: 06-09-2009, 02:49 PM
  3. Problem with margins/spacing
    By joseche in forum AWT / Swing
    Replies: 2
    Last Post: 12-26-2008, 08:22 PM
  4. Spacing buttons on a panel
    By 2o2 in forum New To Java
    Replies: 8
    Last Post: 10-20-2008, 10:44 AM
  5. Help with spacing in java
    By barney in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 08:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •