Well here is what I did. I wanted the numbers to print under the centers of the words Value, Square, and Cube, instead of at the left:
System.out.println( " " + n + "\t" + " " + square(n) + "\t" + " " + cube(n) );
But when I look at the headings Value, Square, and Cube, the word Cube is spaced closer to the word Square, than Square is to Value. I don't know why that is. I want it to look evenly spaced between the words:
But instead it's looking more like this:
I got to try and fix it so it looks evenly spaced.