迴圈裡會印出0,1,2,3,4,5, for(int i = 0 ; i < 10;i++) { System.out.print(i+","); if(i==5)//當i==5時就先中斷這個迴圈了break; } ...
確定! 回上一頁