本範例使用List 介面的實現類ArrayList 初始化一個列表物件list,並呼叫contains 方法判斷列表中是否包含“蘋果”字串。 public static void main(String[] ...
確定! 回上一頁