对于数组以下描述正确的是()

A.val arr = Array(4,3,5,1,2)val b = arr.sortedsorted将会把数组按升序进行重新排序 B.val arr = Array(4,3,5,1,2)val b = arr.sortedsorted将会把数组按降序进行重新排序 C.val arr = Array(4,3,5,1,2)val c =arr.sortWith(_>_)sortWith(_>_)表示降序排序 D.val arr = Array(4,3,5,1,2)val c =arr.sortWith(_>_)sortWith(_<_)表示升序排序

时间:2024-02-27 13:07:28

相似题目