奇怪了,今天str.toUpperCase();后,打印str居然还是小写,哪里出错了?
String str = "a";
str.toUpperCase();
System.out.println(str);谢谢