i am new to android. I want to know how to compare Integer with integer array. There is a set of integer array (Ex) array_int={1,2,3,4} and single integer int i=2, here i wa
for(i = 0; i < integerArray.length; i++ { if(singleinteger != integerArray[i] { //some action } else { break; //add this line } }