将小写字母转换成大写字母
package demo1;
import java.util.Scanner;
public class ch03 {
public static void main(String[] args) {
System.out.println("请输入一个小写字符串");
Scanner input=new Scanner(System.in);
String str1=input.next();
//String str2=str1.toUpperCase();
System.out.println(str1.toUpperCase());
}
}
时间最会骗人,但也能让你明白,这个世界上没有什么是不能失去的,留下的尽力珍惜,得不到的都不重要
浙公网安备 33010602011771号