public class StringToUpperCase {
public static void main(String[] args) {
String s = "Hello World";
System.out.println(s);
System.out.println(s.toUpperCase());
}
}
同理s.toLowerCase()可以把大写转小写
转载于:https://www.cnblogs.com/RoyZxc/p/10542756.html
public class StringToUpperCase {
public static void main(String[] args) {
String s = "Hello World";
System.out.println(s);
System.out.println(s.toUpperCase());
}
}
同理s.toLowerCase()可以把大写转小写
转载于:https://www.cnblogs.com/RoyZxc/p/10542756.html