林苡嫻2022.11.7,陳列=順序的同型資料

//林苡嫻2022.11.7,陳列=順序的同型資料
public class Main {
  public static void main(String[] args) {
    String[] yooo = {"富豪", "寶馬", "福特", "馬自達"."雪碧"};   
    /*宣告字串陣列,[]代表陳列,名稱yooo*/
    /*方法length陳列的長度.使用迴圈列出所有我的汽車*/
    System.out,println("陣列長度=" + yooo.length)
    for (int i = 0 ; i < yooo.length;i++)
    System.out.println(yooo[i]);
  }
}

留言

這個網誌中的熱門文章

林苡嫻tkinter視窗套件Entry工具代替OptionMenu工具

林苡嫻VSCode編輯Python, tkinter建構Button,Lable