public class Solution {
public static int solution(int[] x, int[] y) {
// for every value in x
for (int v : x){
// check if value exists in y
boolean i = y.contains(v);
// if indicator returns false the value is returned
if (i == false){
int r = v;
}
}
Solution.java:8: error: cannot find symbol boolean i = y.contains(v); ^ symbol: method contains(int) location: variable y of type int[]