나는 아래의 코드가있는 동안 :루프와 fileStreams
while (FileOne.hasNextLine()){
String check = FileOne.nextLine();
Reader r = new FileReader("something");
mass1:
try{
Scanner FileTwo = new Scanner(r);
mass1:
while (FileTwo.hasNextLine()) {
String toCheck= FileTwo.nextLine().toString();
index1 = check.indexOf(toCheck);
if(index1 != -1){
index2++;
break mass1;
}//if(index1 != -1)
}//(it.hasNext())
}//try
finally {
r.close();
}//finally
}//while (FileOne.hasNextLine())
을 그리고 내가 물어보고 싶은 : 때 일명 동안 (break 명령과 함께 또는없이) (FileTwo.hasNextLine) 끝, 다음 동안 두 번째 파서가 명령에 도달 할 때, 파일은 처음부터 또는 지난 번에 있었던 것부터 시작될 것입니다. 처음부터 시작하지 않는다면 어떻게 시작해야할까요?
왜 두 개의 'mass1'라벨이 있습니까? –