Android examples for java.lang:array
contained In String Array
import android.content.Context; import android.content.res.AssetManager; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class Main{ /**// w ww. j av a 2 s . c o m * is s contained in a string in array * @param s * @param array * @return */ public static boolean containedInStringArray(String s, String[] array) { for (String cand : array) { if (cand.contains(s)) { return true; } } return false; } }