public class dome {
public static void main(String[] args) {
//大小写十分敏感
String la = “hudi”;
String Aa = “hudi”;
String _a = “hudi”;
String
a
=
"
h
u
d
i
"
;
/
/
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
/
∗
多
行
注
释
∗
/
/
∗
∗
∗
文
档
注
释
∗
/
S
y
s
t
e
m
.
o
u
t
.
p
r
i
n
t
l
n
(
l
a
)
;
S
y
s
t
e
m
.
o
u
t
.
p
r
i
n
t
l
n
(
a
)
;
S
y
s
t
e
m
.
o
u
t
.
p
r
i
n
t
l
n
(
a = "hudi"; //==================================================== /* 多行注释 */ /** * 文档注释 */ System.out.println(la); System.out.println(_a); System.out.println(
a="hudi";//====================================================/∗多行注释∗//∗∗∗文档注释∗/System.out.println(la);System.out.println(a);System.out.println(a);
System.out.println(Aa);
//变量
String 王者荣耀 =“最强王者”;
String 王者荣耀2 =“倔强青铜”;
System.out.println(王者荣耀);
}
}
java所有的组合都需要名字,类名,变量名以及方法名,都被称为标识符
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)