2015年11月2日

一个数组中是否包含某个值

摘要: 1.检查数组中是否包含特定值的四种不同方法1)使用List:public static boolean useList(String[] arr, String targetValue) { return Arrays.asList(arr).contains(targetValue);}2)... 阅读全文

posted @ 2015-11-02 15:22 小小小小小小小码农 阅读(745) 评论(0) 推荐(0) 编辑

导航