All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lambda.tests.TestMyVector Maven / Gradle / Ivy

The newest version!
package com.lambda.tests;

import java.util.Vector;

public class TestMyVector {

    public static void main(String[] args) {
        int i = 1;
        Vector v = new Vector();
        v.setSize(0);
        v.add("Thing_0");
        v.add("Thing_" + (i++));
        v.add("Thing_" + (i++));
        v.add("Thing_" + (i++));
        v.add("Thing_" + (i++));
        v.setSize(5);
        v.setSize(2);
        v.clear();
        v.setSize(3);
        v.add("Thing_" + (i++));
        System.out.println("Done");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy