MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.Arrays;
import java.util.Vector;

public class MainClass {
    public static void main(String args[]) {
        Integer[] array = { 1, 2, 3, 4, 5 };
        Vector<Integer> v = new Vector<Integer>(Arrays.asList(array));

        System.out.println(v);
    }
}