Java have equals method as static method in java.util.Arrays class. But you can also have equals on the reference of the array in java.
equals static method in Arrays
static boolean equals(type[] a, type[] b)
returns TRue if the arrays have the same length, and if the elements in corresponding indexes match.
equals method on reference of array
See here to get more on this.
No comments:
Post a Comment