Tweaking the output
I've got this program that prints an integer, then in the next column it shows the square, then in the next column it shows the cube. I want it to
look like this:
[ code]
ValueSquareCube
11 1
24 8
39 27
41664
[/code]
You get the idea:
But for some reason the numbers under the Cube column are not looking right. They're looking ragged like this:
ValueSquareCube
111
248
3927
416 64
525 125
Why is it printing like that? How can I fix it? It doesn't appear Java has a setw( ) manipulator like C++ does.

