Yeah this is very basic but I have forgot it oh crap how to space words using commands... ):
Code:public class IFORGOTHOWTOSPACE
{
{
System.out.println("\\t") // i totally forgot
}
}
Printable View
Yeah this is very basic but I have forgot it oh crap how to space words using commands... ):
Code:public class IFORGOTHOWTOSPACE
{
{
System.out.println("\\t") // i totally forgot
}
}
Please clarify your question.
Printing a score is what I am doing and it is not getting align right for example:
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
*/
I would use printf instead of println. The java.util.Formatter API (which is what printf uses) should help you.
Maybe you know the code I have forgotten I just want to align it simple..............................
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.
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.
or you could've just fixed the example I have posted.Code:System.out.println("\t"+"Something here");
Code:System.out.println("\t"+"Write something here nuff said.");