public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); while (sc.hasNextLine()){ String str = sc.nextLine();//输入字符串 // 调用切割方法 split(str); } } public static void split(String str){ while...