how sort function and compare works in ArrayList?

后端 未结 0 872
抹茶落季
抹茶落季 2020-11-22 16:23

java can anyone explain how a and b will get values pls.

                list.sort((a,b)->a.getValue().compareTo(b.getValue()));
       
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题