import java.util.Hashtable;Runtime:
public class Main {
public static void main(String[] args) {
Hashtable< String, String> ht = new Hashtable< String, String> ();
ht.put("1", "one");
ht.put("2", "two");
ht.put("3", "three");
boolean b = ht.contains("three");
System.out.println("Does the value three exist in Hashtable?: " + b);
}
}
The value three exists in Hashtable? :true
Please disable your ad blocker and refresh the window to use this website.