小写字母转化大写字母

    xiaoxiao2021-03-25  293

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

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

    转载请注明原文地址: https://ju.6miu.com/read-22690.html

    最新回复(0)