Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }
}