Why do I get this error? (Using JBuilder 6 Personal Edition)
error and code sample below:
ERROR:
"ListCharacters.java": Error #: 203 : illegal start of type at line 16, column 40
CODE Sample:
package listcharacters;
import java.io.*;
/**
* <p>Title:ListCharacters </p>
* <p>Description: Demonstrates a For Loop by printing all the ASCII characters</p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: from ,Thinking in Java' , pg#174</p>
* @author WBG
* @version 1.0
*/
public class ListCharacters {
public static void main(String[] args){
for (char c = 0; c < 128; c++){
if (c != 26 ) //skip ANSI ClearScreen
System.out.println("Value: " + int(c) +
" Character: " + c);
}
}
}
error and code sample below:
ERROR:
"ListCharacters.java": Error #: 203 : illegal start of type at line 16, column 40
CODE Sample:
package listcharacters;
import java.io.*;
/**
* <p>Title:ListCharacters </p>
* <p>Description: Demonstrates a For Loop by printing all the ASCII characters</p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: from ,Thinking in Java' , pg#174</p>
* @author WBG
* @version 1.0
*/
public class ListCharacters {
public static void main(String[] args){
for (char c = 0; c < 128; c++){
if (c != 26 ) //skip ANSI ClearScreen
System.out.println("Value: " + int(c) +
" Character: " + c);
}
}
}