public class HelloWorld{
public static void main(String[] args) {
final String sex="男";
final String b="女";
System.out.println("sex:"+sex);
System.out.println("b:"+b");
}
}
单个字符用char
System.out.println("b:"+b");这个错了 后面没有”,System.out.println("b:"+b);
改为
public class HelloWorld{
public static void main(String[] args) {
final String sex="男";
final String b="女";
System.out.println("sex:"+sex);
System.out.println("b:"+b);
}
}