这样子是输出还是 abcd没有用到转换大写的方法
String s="abcd";
s.toUpper();
System.out.println(s);
这样子输出ABCD,用到了大写的方法
String s="abcd";
System.out.println(s.toUpper());
为什么会这样呢
这样子是输出还是 abcd没有用到转换大写的方法
String s="abcd";
s.toUpper();
System.out.println(s);
这样子输出ABCD,用到了大写的方法
String s="abcd";
System.out.println(s.toUpper());
为什么会这样呢