while(scanf(“%d“,&n)==1) 在JAVA中实现类似功能

NoSuchKey