摘要:
List list = new ArrayList(); list.add("a"); list.add("b"); final int size = list.size(); String[] str = (String[])... 阅读全文
摘要:
判断数组是否包含某值: //方法一: Integer[] arr = {1, 2, 3}; List list = Arrays.asList(arr); if (list.contains(1) && list.contains(2)) { ... 阅读全文