(String[] arr, String targetValue)
| 49 | return s; |
| 50 | } |
| 51 | public static boolean contains(String[] arr, String targetValue){ |
| 52 | if (arr!=null && arr.length>0){ |
| 53 | for(String s: arr){ |
| 54 | if(s.equals(targetValue)){ |
| 55 | return true; |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | return false; |
| 60 | } |
| 61 | } |