返回列表 發帖
  1. public class Ch28
  2. {
  3.     public static void main(String args[])
  4.     {
  5.        String a[]=new String[]{"A","B","C","D"};
  6.        String b[]=new String[]{"A","B","C","D"};
  7.        String c[]=new String[]{"A","B","C","D"};
  8.       
  9.        System.out.println("陣列A:");
  10.        for(int i=0; i<4; i++)
  11.        {
  12.           System.out.println(a[i]);
  13.        }
  14.       
  15.        System.out.println("陣列B:");
  16.        for(int i=0; i<4; i++)
  17.        {
  18.           System.out.println(b[i]);
  19.        }
  20.       
  21.        System.out.println("陣列C:");
  22.        for(int i=0; i<4; i++)
  23.        {
  24.           System.out.println(c[i]);
  25.        }
  26.     }
  27. }
複製代碼

TOP

返回列表