Here you can find the source of anyEqual(int item, int... expected)
public static boolean anyEqual(int item, int... expected)
//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; } }