猿问

下面显示的是什么错误?

public class HelloWorld{

    public static void main(String[] args) {

final string SEX1="男";

        final string SEX2="女";

System.out.println(SEX1);

System.out.println(SEX2);

}

}

/data/mfs/usercode/85/1256/AfA7/HelloWorld.java:3: error: cannot find symbol final string SEX1="?"; ^ symbol: class string location: class HelloWorld /data/mfs/usercode/85/1256/AfA7/HelloWorld.java:4: error: cannot find symbol final string SEX2="?"; ^ symbol: class string location: class HelloWorld 2 errors

陈波
浏览 1328回答 1
1回答
随时随地看视频慕课网APP

相关分类

Java
我要回答