Array List of String Sorting Method

后端 未结 6 519
小蘑菇
小蘑菇 2021-01-12 10:39

i have an Array List with Following values

ArrayList [Admin,Readonly,CSR,adminuser,user,customer]

when i used

Collections.s         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 10:56

    Answer is simple - big letters have lower number in ASCII. So default comparing works fine.

提交回复
热议问题