Java tutorial
//package com.java2s; import java.util.List; public class Main { public static Double getMinElement(List<Double> list) { Double min = 10000d; for (int i = 0; i < list.size(); i++) { if (list.get(i).compareTo(min) < 0) { min = list.get(i); } } return min; } }