3 回答
已采纳

00小伙
TA贡献86条经验 获得超30个赞
Set<String> set = new HashSet<String>(Arrays.asList(arr));
return set.contains(targetValue);
刚好做面试题看到,希望可以帮到你,望采纳!

添加回答
举报
0/150
提交
取消