public static void main(String[] args) {
  List list  = new ArrayList();
   list.add(new Double(123.23));
   list.add(new Double(33.23));
   list.add(new Double(13.23));
   list.add(new Double(3.23));
   System.out.println(getMaxDouble(list));
 }
 public static double getMaxDouble(List list){

     double max = Collections.max(list);
     double min = Collections.min(list);
      return max;
 }

https://blog.csdn.net/li1246994520/article/details/50834100/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-09-17
  • 2022-12-23
  • 2021-07-24
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-01-30
  • 2022-03-03
  • 2021-11-13
相关资源
相似解决方案