so suppose I have an arraylist
ArrayList<int[]> j = new ArrayList<int[]>();
and I add to j:
int[] w = {1,2};
j.add(w);
and suppose I want to know if j contains an array that has {1,2} in it without using the object w since I will be calling it from another class.....so I create a new array with {1,2} in it...
int[] t = {1,2};
return j.contains(t);
but then this would return false even though w was added to j and w contains the exact same array {1,2} as t...is there a way to use contains such that I can just check to see if one of the elements of the arraylist has the array value {1,2}?