I am trying to loop through 2 arrays, the outer array is longer then the other. It will loop through the first and if the 2nd array does not contain that int it will return
contain method is reserved for ArrayList Try this:
public boolean linearIn(int[] outer, int[] inner) { for (int i = 0; i < outer.length; i++) { for (int j = 0; j < inner.length; j++) { if (outer[i] == inner[j]) return false; } } return true; }