Python got array comparison.
Erlang got list and/or tuple comparison.
Even old plain C has memcmp() to compare arrays of bytes.

But for java, you can as well get lost to compare two arrays of basic types, like char, or int.

Or you reimplement your own Comparable objects, encapsulating the array... Well, seems like it's the only option.



Leave a Reply.