我的问题是这个
Scanner sf = new Scanner(f);
ArrayList<String> teamArr = new ArrayList<String>();
int counterPopulate = 0;
while(sf.hasNextLine()){
teamArr[counterPopulate] = sf.nextLine();
counterPopulate++;
}
Run Code Online (Sandbox Code Playgroud)
任何解决方案,这是一个尝试捕获包围.在这一部分得到问题teamArr[counterPopulate] = sf.nextLine();