Compare in what way? First you'd have to write a compare() method in java.util.Arrays, so probably equals.
But if you followed the way most compare() methods operate, it would do something different than what equals() does, since equals() returns a boolean, and compare returns an int.
So, do you want to compare, or find out if equals? And what method were you actually referring to? And would it have been quicker to benchmark than to wait for an answer?