请问下面这段代码哪里有错?
public class something(){
void dosomething(){
private static final s = "";
int i = s.length();
}
}
方法中不能有访问权限的修饰,只有在类中才有private static final String s="";
private必须去掉
转自:https://zhidao.baidu.com/question/583947179.html
最后
以上就是等待雨最近收集整理的关于请问下面这段代码哪里有错? private static final String s=""的全部内容,更多相关请问下面这段代码哪里有错?内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复