I'm trying to make it so that if an array is equal to another array then do something.
Something like this:
ArrayList<String> array = new ArrayList<String>(); gridArray.add(string1); gridArray.add(string2); gridArray.add(string3); gridArray.add(string4); if (array == {a,b,c,d}) { .... } if (array == {e,f,g,h}) { .... }
string1 etc are all variables so will be different each time I run this bit of code. The main thing I want to achieve is to not have to add a,b,c,d etc individually to an array (like for 'array') because I am going to have a lot of the if statements with different values for a,b,c,d, and a lot more values than just a,b,c,d.