Here you can find the source of arrayIsHave(String[] strs, String str)
public static boolean arrayIsHave(String[] strs, String str)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean arrayIsHave(String[] strs, String str) { for (int i = 0; i < strs.length; i++) { if (strs[i].equalsIgnoreCase(str)) { return true; }//from www . j a v a 2s .com } return false; } }