String b = a.toUpperCase();toUpperCase()方法虽然会返回一个处理后的String字符串,但是你没赋值啊!
你没有获取a.toUpperCase()返回的字符串。a本身是没有改变的。String c = a.toUpperCase();//c="ABC"