my code uses a for loop like so:
for(int i=0; i<100; i++)
{
System.out.print(number + "\t");
}
Of course my for loop is more complicated than that but i just typed that in for demonstration purposes. I am using "\t" for alignment in my table but it makes the columns print too far apart. my current output is:
1 2 3 4
-- -- -- --
1 1 1 4
0 2 2 2
0 0 3 3
how can i reduce the space that tab "\t" makes? my other question is how can i split the line at 80 characters so that my output does not exceed the page width?