對名稱進行排序,首先要得到HashMap中鍵的集合(keySet),並轉換為陣列,這樣才能用Arrays.sort()進行排序. Set set=phone.keySet(); Object[] arr=set.
確定! 回上一頁