public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String[] strs = new String[N]; int i=0; sc.nextLine();// 8 缺失的一行 for(i=0;i<N;i++){ strs[i] = sc.nextLine(); } } 输入数据是下面这样的: 2 1,2 2,3,4 在线笔试时没有写第8行,导致下面for循环中的第一次sc.nextLine()读到空字符串""。 然后在...