public class HelloWorld{
public static void main(String[] args) {
final String NAME="imooc wang";
final char MSEX="男";
final char FSEX="女";
System.out.println(NAME +"is" +FSEX+MSEX);
}
}
哪里错了
char用单引号,String才用双引号
求采纳,谢谢!
public class HelloWorld{
public static void main(String[] args) {
final String NAME="imooc wang";
final char MSEX='男';
final char FSEX='女';
System.out.println(NAME +"is" +FSEX+MSEX);
}
}
改好了