reset password
Author Message
jlin99
Posts: 5
Posted 22:29 Oct 19, 2017 |

Can we use Arrays.equals(arrayA, arrayB)?

or anyway to check the equal between arrayA and arrayB?

jhurley
Posts: 207
Posted 09:46 Oct 20, 2017 |

You can use Arrays.equals() if it works correctly.  You could also sort the array and check the values one at a time.

tweathe
Posts: 10
Posted 11:23 Oct 20, 2017 |

Does this mean we are allowed to use java.util.Arrays in the MySet Class? Or are we supposed to write our own method for sorting the arrays

jhurley
Posts: 207
Posted 12:37 Oct 20, 2017 |

OK to use Arrays.sort