Java tutorial
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()); } }