public class a { public static void main(String [] args){ String str="Look, look!"; public String result = str.toUpperCase(); System.out.println(String); } } 第四行提示Illegal modifier for parameter result; only final is permitted,System.out.pri
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 12:11:23
public class a { public static void main(String [] args){ String str="Look, look!"; public String result = str.toUpperCase(); System.out.println(String); } } 第四行提示Illegal modifier for parameter result; only final is permitted,System.out.pri
public class a {
public static void main(String [] args){
String str="Look, look!";
public String result = str.toUpperCase();
System.out.println(String);
}
}
第四行提示Illegal modifier for parameter result; only final is permitted,
System.out.println(String); 行tring cannot be resolved
什么原因,需要怎么修改,谢谢
public class a { public static void main(String [] args){ String str="Look, look!"; public String result = str.toUpperCase(); System.out.println(String); } } 第四行提示Illegal modifier for parameter result; only final is permitted,System.out.pri
public class a {
public static void main(String[] args) {
String str = "Look, look!";
String result = str.toUpperCase();
System.out.println(result);
}
}