我是这么写的:
string temp;
try(){

while(!(temp=in.nextLine()).equals){
    写上很简单的程序
}

}catch (Exception e ) {

   / / TODO: handle exception

}
syso

然后就过了,也不晓得网易怎么想的,出这种题,感觉好菜。