try
{ BufferedReader br=new BufferedReader(new
InputStreamReader(System.in));
int t=Integer.parseInt(br.readLine());
if (t <0 && t>11) System.exit(0);
for (int i = 0; i<t;i++){
int count=Integer.parseInt(br.readLine());
if (count <1 && count>101) System.exit(0);
.
.
}catch(Exception e){}
}
如果count> = 102程序没有终止任何人都可以建议我该怎么做,为什么? t> = 11System.exit(0)不工作
由于计数不小于1 – tkausl
如何't'既'如果(t <0 && t> 11)'? –
'count'如何可以小于1且大于101? – BackSlash