其他分享
首页 > 其他分享> > 关键字

关键字

作者:互联网

关键字

标识符注意点

点击查看代码
public class Demo01 {
    public static void main(String[] args) {


        String 王者荣耀 = "百星王者";
        //String 王者荣耀 = "倔强青铜";
        System.out.println(王者荣耀);

         //大小写十分敏感
        String Man = "lixiaohang";
        String man = "lixiaohang";

        String Ahello = "lixiaohang";
        String hello = "lixiaohang";
        String $hello = "lixiaohang";
        String _hello = "lixiaohang";

        String _1 = "lixiaohang";


        //String 1hello = "lixiaohang";//不可用
        //String #hello = "lixiaohang";//不可用
        //string *hello = "lixiaohang";//不可用
    }
}
`

标签:String,王者,lixiaohang,荣耀,public,关键字,hello
来源: https://www.cnblogs.com/lxh-java/p/15856050.html