Java8中检查字符串在数组中是否存在

为何80%的码农都作不了架构师?>>>   架构 List<String> adminList = new ArrayList<>(); String username = "root"; // 检查root用户在数据中是否存在 adminList.stream().anyMatch(s -> Objects.equals(s, username)) 参考: How can I find an e
相关文章
相关标签/搜索