(String[] arr, String targetValue)
| 92 | return s; |
| 93 | } |
| 94 | public static boolean contains(String[] arr, String targetValue){ |
| 95 | if (arr!=null && arr.length>0){ |
| 96 | for(String s: arr){ |
| 97 | if(s.equals(targetValue)){ |
| 98 | return true; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | return false; |
| 103 | } |
| 104 | } |