Find Minimum element of Java Vector
import java.util.Collections; import java.util.Vector; public class Main { public static void main(String[] args) { Vector<Double> v = new Vector<Double>(); v.add(new Double("3.4")); v.add(new Double("3.3")); v.add(new Double("4.4")); v.add(new Double("5.3")); v.add(new Double("3.3")); Object obj = Collections.min(v); System.out.println(obj); } }