But the ArrayList class does NOT have a sort() method!
When you look in ArrayList, there doesn’t seem to be any method related to sorting. Walking up the inheritance hierarchy didn’t help either—it’s clear that you can’t call a sort method on the ArrayList.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.