code: private static boolean contains(Key[] haystack, Key needle) {
  	for (int i = 0; i < haystack.length; i++) {
  	    if (haystack[i].equalsIgnoreCase(needle)) return true;
  	}
  	return false;
      }
docs: /*
  private static boolean contains(Key[] haystack, Key[] needle) { Key h; outer:for(int
  i=0;i<haystack.length;i++) { h=haystack[i]; for(int y=0;y<needle.length;y++) {
  if(h.equalsIgnoreCase(needle[y])) continue outer; } return false; } return true; }