Scanner in = new Scanner(System.in);         int m = Integer.parseInt(in.nextLine());         ArrayList<Interval> input = new ArrayList<>();                  for(int i = 0; i < m; i++){             String[] errorsClassifiedByEditors = in.nextLine().split(";");             for(int j = 0; j < errorsClassifiedByEditors.length; j++){                 String[] errors = errorsClassifiedByEditors[j].split(",");                 input.add(new Interval(Integer.parseInt(errors[0]), Integer.parseInt(errors[1])));             }         }         in.close();         
点赞 评论

相关推荐

威猛的小饼干正在背八股:挂到根本不想整理
点赞 评论 收藏
分享
牛客网
牛客企业服务