### Question:
PPSort { public static String[] sortedToStrings(HashMap<String, Integer> temp) { List<Map.Entry<String,Integer>> resulttemp = new ArrayList<Map.Entry<String,Integer>>(temp.entrySet()); Collections.sort(resulttemp, new Comparator<Map.Entry<String,Integer>>(){ @Override public int compare(Map.Entry<String,Integer> o1, Map.Entry<String,Integer> o2) { return (o2.getValue() - o1.getValue()); } }); String[] sortedtemp = new String[temp.size()]; for (int k = 0; k < temp.size(); k++) { sortedtemp[k] = resulttemp.get(k).toString(); } return sortedtemp; }  static String[] sortedToStrings(HashMap<String, Integer> temp); static HashMap<String, Float> sortedToHashMap(HashMap<String, Float> temp, int N); static HashMap<String, Integer> sortedToHashMapInteger(HashMap<String, Integer> temp, int N); static int getMaxId(int[] array); static List<HashMap<String, String>> sortedToDoubleMap(HashMap<String, Long> temp,
			String keyname1, String keyname2, int num);  }### Answer:
@Test public void testSortedToString_将HashMap排序成字符串数组() { String[] strs = PPSort.sortedToStrings(in_sts); for (int i = 0; i < strs.length; i++) { assertEquals(out_sts[i], strs[i]); } }