1. 表驱动 字符串数组 ⇒ 字符串list ⇒ contains (list 内部也是遍历) List<String> candiates = Arrays.asList(new String[] {"", "", ""});