📜  最小值映射 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:13.188000             🧑  作者: Mango

代码示例1
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( );
}