0
나는 몇 시간 동안이 작업을 해왔으며 스스로 또는 온라인으로 문제를 찾을 수 없습니다. 왜 첫 번째 루프가 작동하고 두 번째 루프가 첫 번째 반복을 지나치지 않는지는 알 수 없습니다. 당신이 중단 점 및 실행을 설정하면왜 내 hasNextLine() 루프는 한 번만 작동합니까?
이Alaska,Alberta,Northwest Territory,Kamchatka
Alberta,Alaska,Northwest Territory,Ontario,Western United States
Central America,Western United States,Venezuela
Eastern United States,Western United States,Ontario,Quebec
Greenland,Northwest Territory,Ontario,Quebec,Iceland
Northwest Territory,Alaska,Greenland,Ontario,Alberta
예외가, 그냥 한 번
루프가 두 번 이상 실행되거나 예외가 있습니까? –
무엇이 인쇄됩니까? 예외가 있습니까? 좀 더 자세한 정보를주세요. –
'addAdjacencies'에 대한 호출을 주석 처리하고 이것이 루프를 차단 해제하는지 확인하십시오. – dasblinkenlight