返回列表 發帖
  1. public class Edit1
  2. {
  3.     public static void main(String args[])
  4.     {
  5.         String a[]={"春","夏","秋","冬"};
  6.         String b[]=new String[]{"a","b","c","d"};
  7.         String c[];
  8.         c[]=new String[]{"n","e","s","w"};
  9.         System.out.print("陣列a");
  10.         for(int i=0; i<4; i++)
  11.             System.out.print(a[i]+"");
  12.         System.out.println();
  13.         System.out.print("陣列b");
  14.         for(int i=0; i<4; i++)
  15.             System.out.print(b[i]+"");
  16.         System.out.println();
  17.         System.out.print("陣列c");
  18.         for(int i=0; i<4; i++)
  19.             System.out.print(c[i]+"");
  20.         System.out.println();
  21.     }
  22. }
複製代碼
我是眾神之王XXX  I love you
0000000000

TOP

返回列表