importjava.util.Scanner;publicclassA04{publicstaticvoidmain(Stringargs[]){System.out.println("请输入字符串:");Strings=newScanner(System.in).next();System.out.println("输出结果:");for(charc:s.toCharArray()){if(c>='a'&&c='A'&&c<='Z'){c+=32;}System.out.print(c);}}}