Wednesday, 25 January 2017

Vector : IsEmpty


import java.util.Vector;

public class IsEmpty {

    public static void main(String[] args) {
        // TODO Auto-generated method stub


        Vector<String> v = new Vector<>();
        v.add("v1");
        v.add("v2");
        v.add("v3");
        v.add("v4");
       
        System.out.println("Full List : "+v);
        System.out.println("isEmpty() : "+v.isEmpty());
       
    }
}

No comments:

Post a Comment