Aren't your arrays 2D? Thats what compareTo is complaining about. You are passing an instance of a 1D array.

Regards,
Jim