Observe the following code, which creates a simple hashtable.
Observe the following code, which creates a simple hashtable.
// Demonstrate a Hashtable <br< h1=””></br<>
/>import java.util.*;
class HTDemo
{
public static void main(String args[])
{
Hashtable<String,Integer> numbers = new
Hashtable<String,Integer>();
numbers.put(“one”, new Double(1.0d));
numbers.put(“two”, new Double(2.0d));
}
}
Starting with this provided code, add the following functionality: