野心家

导航

将小写字母转换成大写字母

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());
	}

}

  

posted on 2018-01-03 19:39  野心家  阅读(593)  评论(0编辑  收藏  举报