我的问题是这个
Scanner sf = new Scanner(f);
ArrayList<String> teamArr = new ArrayList<String>();
int counterPopulate = 0;
while(sf.hasNextLine()){
teamArr[counterPopulate] = sf.nextLine();
counterPopulate++;
}
任何解决方案,这都被 try catch 包围。在这部分解决问题teamArr[counterPopulate] = sf.nextLine();