SyntaxFix
Write A Post
Hire A Developer
Questions
Check out the static java.util.Arrays.equals() family of methods. There's one that does exactly what you want.
java.util.Arrays.equals()