Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Vector;

public class Main {
    public static void main(String[] args) {

        Vector vec = new Vector(4);

        System.out.println("The vector is empty: " + vec.isEmpty());

        vec.add(4);

        System.out.println("The vector is empty: " + vec.isEmpty());
    }
}