class return{
public static void main(String args[]){
boolean t = true;
System.out.println(" this is before");
if (t) return;
System.out.println(" this is not going to be printed on the screen");
}
}
这是我的代码,我的命令行
标识符预期错误
谁能解释问题出在哪里?
return
是一个Java关键字,您不能将其用作类名,将其更改为Return
或其他有意义的名称
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句