Here you can find the source of arrayContainString(String[] arrayString, String str)
public static boolean arrayContainString(String[] arrayString, String str)
//package com.java2s; //License from project: Apache License public class Main { public static boolean arrayContainString(String[] arrayString, String str) { if (arrayString == null || arrayString.length == 0) { return false; }/*from www . j a v a2 s. c o m*/ for (int i = 0; i < arrayString.length; i++) { if (arrayString[i].equals(str)) return true; } return false; } }