static Hashtable<Leader, ArrayList<Integer>> assignedLeader=new Hashtable<Leader, ArrayList<Integer>>(20); -


i need add elements hashtable , hashtable needs have array list. not able find way add elements in table properly. please me out.

static hashtable<integer, arraylist<integer>> assignedleader =     new hashtable<integer, arraylist<integer>>(20); 

just reference .

static hashtable<integer, arraylist<integer>> assignedleader =             new hashtable<integer, arraylist<integer>>(20);      arraylist<integer> al=new arraylist<integer>();     al.add(1);     al.add(2);     al.add(3);      assignedleader.put(1, al); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -