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