create a ArrayList String type. ArrayList<String> gfg = new ArrayList<String>();. // Initialize an ArrayList with add(). gfg.add("Geeks");.
確定! 回上一頁