小写字母转化大写字母

来源:互联网 发布:ui交互设计软件 编辑:程序博客网 时间:2024/05/02 20:53

把从键盘中输入的小写字母转化成大写字母并输出


public static void main(String[] args){Scanner sc=new Scanner(System.in);String str = sc.next();str =str.toUpperCase();System.out.println(str);}


0 0
原创粉丝点击