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();         
点赞 评论

相关推荐

2025-12-22 21:12
门头沟学院 Java
码农索隆:看得出来,公司对你挺满意哦。 但是你要结合一下自己的职业发展看下,眼光要放长远了看
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务