Opening Hours :7AM to 9PM
Hashtable<wrapperclass1,wrapperclass2> objref=new Hashtable<wrapperclass1,wrapperclass2>();
import java.util.*; class HashtablePut { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); } } class Main { public static void main(String args[]) { HashtablePut d=new HashtablePut(); d.list(); } }
import java.util.*; class HashtableGet { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.get(2)); } } class Main { public static void main(String args[]) { HashtableGet d=new HashtableGet(); d.list(); } }
import java.util.*; class HashtableIsEmpty { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.isEmpty()); } } class Main { public static void main(String args[]) { HashtableIsEmpty d=new HashtableIsEmpty(); d.list(); } }
import java.util.*; class HashtableIsRemove { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println("The Removing Element is "+al.remove(4)); } } class HashtableDemo { public static void main(String args[]) { HashtableIsRemove d=new HashtableIsRemove(); d.list(); } }
import java.util.*; class HashtableSize { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.size()); } } class Main { public static void main(String args[]) { HashtableSize d=new HashtableSize(); d.list(); } }
import java.util.*; class HashtableKeySet { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.keySet()); } } class Main { public static void main(String args[]) { HashtableKeySet d=new HashtableKeySet(); d.list(); } }
import java.util.*; class HashtableValue { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.values()); } } class Main { public static void main(String args[]) { HashtableValue d=new HashtableValue(); d.list(); } }
import java.util.*; class HashtableClear { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); al.clear(); System.out.println(al); } } class Main { public static void main(String args[]) { HashtableClear d=new HashtableClear(); d.list(); } }
import java.util.*; class HashtableContainsKey { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.containsKey(2)); } } class HashtableDemo { public static void main(String args[]) { HashtableContainsKey d=new HashtableContainsKey(); d.list(); } }
import java.util.*; class HashtableContainsValue { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); System.out.println(al.containsValue("chennai")); } } class Main { public static void main(String args[]) { HashtableContainsValue d=new HashtableContainsValue(); d.list(); } }
import java.util.*; class HashtablePutAll { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); Hashtable<Integer,String> al2=new Hashtable<Integer,String>(); al2.putAll(al); System.out.println(al2); } } class Main { public static void main(String args[]) { HashtablePutAll d=new HashtablePutAll(); d.list(); } }
import java.util.*; class HashtableClone { void list() { Hashtable<Integer,String> al=new Hashtable<Integer,String>(); al.put(1,"chennai"); al.put(2,"Delhi"); al.put(3,"Ap"); al.put(4,"Tg"); System.out.println("The List Items Are "+al); Hashtable<Integer,String> al2; al2=(Hashtable)al.clone(); System.out.println(al2); } } class HashtableDemo { public static void main(String args[]) { HashtableClone d=new HashtableClone(); d.list(); } }