Here you can find the source of ArrayContains(String[][] arr, String s)
Parameter | Description |
---|---|
arr | a parameter |
s | a parameter |
public static boolean ArrayContains(String[][] arr, String s)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w . java 2 s .c o m * * @param arr * @param s * @return */ public static boolean ArrayContains(String[][] arr, String s) { s = s.toLowerCase().trim(); for (int i = 0; i < arr.length; i++) for (int j = 0; j < arr[i].length; j++) if (arr[i][j].toLowerCase().trim().equals(s)) return true; return false; } }