Java Array arrayIsHave(String[] strs, String str)

Here you can find the source of arrayIsHave(String[] strs, String str)

Description

array Is Have

License

Open Source License

Declaration

public static boolean arrayIsHave(String[] strs, String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static boolean arrayIsHave(String[] strs, String str) {
        for (int i = 0; i < strs.length; i++) {
            if (strs[i].equalsIgnoreCase(str)) {
                return true;
            }//from   www  .  j  a v  a 2s  .com
        }
        return false;
    }
}

Related

  1. arrayEndsWith(final byte[] array, final byte[] str)
  2. arrayExclude(double[] src, int excludeIndex)
  3. arrayFirstIndexOf(final T[] array, final T value)
  4. arrayFlatten(final int[][] arr)
  5. arrayGetCenter(byte[] array, int location, int length)
  6. arrayLookup(int[] ar, int keystart, int keyend, int forbidden)
  7. arrayMember(String[] array, String member)
  8. arrayMinus(double[] w, double[] v)
  9. arrayNotEmpty(T[] objects, String message)