public static void main(String[] args) { List list = new ArrayList(); list.add("Tom"); list.add("Oliver"); list.add("Barry"); System.out.println(list.contains("Barry")); System.out.println(list.contains("Jerry")); }
站长微信:xiaomao0055
站长QQ:14496453