數組初始化 時候的賦值
String[] strings = new String[]{ "one","two","three" };
list 初始化時候的賦值
List<String> a = new ArrayList<String>() {//這個大括號 就相當於我們 new 接口 {//這個大括號 就是 構造代碼塊 會在構造函數前 調用 this.add("ZBP3100019"); this.add("ZBP3100019"); this.add("ZBP3100019"); this.add("ZBP3100019"); this.add("ZBP3100019"); this.add("ZBP3100019"); this.add("ZBP3100019"); this.add("ZBP3100019"); } };