Wednesday, 25 January 2017

Vector : HashCode


import java.util.Vector;

public class HashCode {

    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("hashCode() : "+v.hashCode());
       
    }
}

No comments:

Post a Comment