Java Array Value Any anyEqual(int item, int... expected)

Here you can find the source of anyEqual(int item, int... expected)

Description

any Equal

License

Open Source License

Declaration

public static boolean anyEqual(int item, int... expected) 

Method Source Code

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

public class Main {
    public static boolean anyEqual(int item, int... expected) {
        for (int i : expected) {
            if (item == i)
                return true;
        }/*from ww w .j a  v  a 2  s .co m*/
        return false;
    }
}

Related

  1. anyAreEmpty(String... words)
  2. anyBlank(String... ss)
  3. anyEmpty(final String head, final String... tail)
  4. anyEmpty(String[] array)
  5. anyEmptyField(String[] items)
  6. anyInherit(Class cl, Class[] otherClasses)
  7. anyInstance(Throwable t, Class[] types)
  8. anyIsTrue(Boolean... conditions)
  9. anyMore(int[] target, int[] test)