Here you can find the source of inArray(String[] haystack, String needle)
protected static boolean inArray(String[] haystack, String needle)
//package com.java2s; //License from project: Creative Commons License public class Main { protected static boolean inArray(String[] haystack, String needle) { for (int i = 0; i < haystack.length; i++) { if (haystack[i].toLowerCase().equals(needle.toLowerCase())) { return true; }// www . ja v a 2 s . c om } return false; } }