「Java」小写转大写

public class StringToUpperCase {

public static void main(String[] args) {

String s = "Hello World";

System.out.println(s);
System.out.println(s.toUpperCase());
}
}
同理s.toLowerCase()可以把大写转小写
posted @ 2019-03-16 16:15  RoyStayHungry  阅读(4354)  评论(0编辑  收藏  举报