sorting - BucketSort in Java -
I am trying to get the head of the Baltsorting algorithm, but failed to do so.
Look at many instances ... but this can not work ...
Let's say I have this:
Public classes Employee {int id; /// Example: 52015 string first name, last name; String section; } I have a large list of employees, so I strip the list of all staff for each department in the straps. And the goal is to put these data in the bucket, on my employee ID, my list of employees is those who are ready to pass. I am unable to understand it.
Instead of using bucket-sorting comparable & lt; Employee & gt; interface. Public Class Employee Applicable & lt; Employee & gt; {Int id; /// Example: 52015 string first name, last name; String section; To compare public differences (Compare Employee Employee) {return.id - Compare Employee employer.getID (); } Anyway, u can read the article to better understand this mechanism.
Comments
Post a Comment