摘要: 先把数组转为list 然后再利用contains方法 String[] strArr = new String[] { "a1", "b1", "c1"}; String str = "c1"; List<String> list = Arrays.asList(strArr); boolean r 阅读全文
posted @ 2020-07-06 14:35 yvioo 阅读(14047) 评论(0) 推荐(0) 编辑