When trying to tab the following code I keep getting: Syntax error on token "Invalid Character", ( expected, that's the error when mousing over the \t underlined, and the "x" error on the left ( I"m using eclipse) shows :
Multiple markers at this line
- Syntax error, insert ")" to complete
MethodInvocation
- Syntax error on token "Invalid Character",
( expected
- t cannot be resolved to a variable
- Syntax error, insert ")" to complete Expression
- t cannot be resolved to a variable
- Syntax error on token "Invalid Character",
( expected
When complete I should have a table with the heading, 3 columns with 10 rows basically from 1 to 1000 once I cube 10// Figure 4.22 public class Powers { public static void main ( String[] args ) { int n =1; System.out.println("Number\t Squared\t Cubed\t "); while( n <= 10 ) { System.out.println( n\t + n*n\t + n*n*n ); n++; } } }