Home > Back-end >  Meaning day18 liu said in the video the collections in the sort order if natural ordering and sortin
Meaning day18 liu said in the video the collections in the sort order if natural ordering and sortin

Time:10-03



Meaning day18 liu said in the video the collections in the sort order if natural ordering and sorting comparison at the same time, give priority to with comparator. The conclusion is shown in figure

I can self-test if put the sort of natural sort comparator, below is sorted by the comparator

CodePudding user response:

As shown in figure didn't see you, only to see in the screenshot you rewrite the comparator method and this method hasn't finished, below the red line should write down you rewrite the comparator method what attribute is the two students sort, then write a main method, test the sorting methods are available according to what students
  • Related