题解 | #大小写转换#
大小写转换
https://www.nowcoder.com/practice/4e089ee8966a4ed4b306f64e68d45264
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); //循环()里面的in.hasNext来判断是否输出停止 while(in.hasNext()){ System.out.println(in.nextLine().toLowerCase());//str.toLowerCase()函数输出小写 } } }