I want to sort an array of objects by comparing values of the type long. How to do that? I only know a
"int compare(Object o1, Object o2)" in the comparable interface. Please help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.