Java小记2 - 字符串大小装换

public class Main {
	public static void main(String[] args){
		String str1 = "Self Learning Center";
		System.out.println(str1.toLowerCase());
		System.out.println(str1.toUpperCase());
	}
}
//结果:
//self learning center
//SELF LEARNING CENTER

展开阅读全文

没有更多推荐了,返回首页