import java.util.Scanner; public class Main { public static void main(String[] args) { int x = 0; int y = 0; Scanner in = new Scanner(System.in); String str = ""; // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextLine()) { // 注意 while 处理多个 case str += in.nextLine(); System.out.println(str); } S...