Android Array Search inArray(Object o, Object... arr)

Here you can find the source of inArray(Object o, Object... arr)

Description

in Array

Declaration

public static boolean inArray(Object o, Object... arr) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean inArray(Object o, Object... arr) {

        for (Object object : arr) {
            if (o == object)
                return true;
        }//from   w w w .  j a va  2  s  .  c  o  m

        return false;
    }
}

Related

  1. indexOf(byte[] bytes, byte[] pattern, int start)
  2. indexOf(byte[] data, byte search)
  3. indexof(byte[] shortBytes, byte[] longBytes)