📅  最后修改于: 2022-03-11 14:52:13.188000             🧑  作者: Mango
Map -- Min value
Write a method that can return the minimum value from ta map
(DO NOT use sort method)
Solution:
public static int minValue( Map map ) {
SortedSet sm = new TreeSet<>(map.values());
return sm.first( );
}