返回列表 發帖
  1. public class Ch11{
  2.     public static void main(String args[]){
  3.         for(int i=1; i<=10; i++){
  4.              if(i==5){
  5.                      return;
  6.              }
  7.              System.out.println(i);
  8.         }
  9.         for(int i=1; i<=10; i++){
  10.              System.out.println(i);
  11.         }
  12.     }
  13. }
複製代碼

TOP

返回列表