本帖最后由 张周飞 于 2014-6-27 11:38 编辑
请问这个java程序有什么错误?
编译的话:参数N的修饰符不合法?.........为啥呢
public class Exam2_2 {
public static void main(String args[]){
private final int N=15;
private final double PI=3.14;
private final boolean B=false;
private final char CH='a';
private final String S="string";
System.out.println("int:"+N);
System.out.println("double:"+PI);
System.out.println("boolean:"+B);
System.out.println("String:"+S);
}
} |