问答详情
源自:2-11 Java常量的应用

怎么不对求大神

public class HelloWorld{

    public static void main(String[] args) {

    final string SEX1=man;

final string SEX2=woman;

system .out.println(SEX1);

system .out.println(SEX2);

}

}


提问者:qq_绅士LY_tvDNQY 2018-10-19 09:31

个回答

  • 周大板的板
    2018-10-26 01:29:59

    final String SEX1="man";

    final String SEX2="woman";

    System .out.println(SEX1);

    System .out.println(SEX2);


  • 慕后端8744727
    2018-10-19 09:52:24

    man 和woman双引号


  • qq_何作胜_dprNXZ
    2018-10-19 09:52:13

    final string SEX1="man";

    final string SEX2="woman";


    字符串用双引号