Why isn't this true?
int[][] arrayOfSets = {{1,2},{9,10},{1,2},{3,5}};
int[][] test = {{1,2},{9,10},{1,2},{3,5}};
if(arrayOfSets==test){ //{{1,2},{9,10},{1,2},{3,5}}){
System.out.println("Exactly the same");
}
The output should be "Exactly the same". or how can I compare 2 variables with 2dimensional arrays?