Here you can find the source of arrayContains(String[] array, String str)
static public boolean arrayContains(String[] array, String str)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { static public boolean arrayContains(String[] array, String str) { return Arrays.asList(array).contains(str); }/*w w w .j a v a 2 s. com*/ static public boolean arrayContains(String[] array, char c) { return Arrays.asList(array).contains(String.valueOf(c)); } }