I have two List<String[]>‘s (string array lists), and I’d like to match the contents with each other. Obviously == doesn’t do the trick, but .equals () doesn’t seem to do it either. So how should I check whether the contents of the string array lists are the same?
By the way, in both above cases I got an exception with message null.
EDIT: Ok… for some reason only x.equals(y) works, and not y.equals(x). Odd…
Just
.equals()works fine, but somehow only in one direction.I was going to accept the first answer on this question, but apparently the guy removed his answer.