Prosze o Pomoc!
Jakie zadanie realiuje poniższy program?
import java.util.*;
public class hash {
public static void main (String args[]) throws Exception {
Hashtable hash = new Hashtable(10,10);
for (int i = 0; i <= 100; i++)
{
Integer integer = new Integer ( i );
hash.put( integer, "Number : " + i);
}
System.out.println (hash.get(new Integer(5)));
System.out.println (hash.get(new Integer(21)));
System.in.read();
for (Enumeration e = hash.keys(); e.hasMoreElements();)
{
System.out.println (hash.get(e.nextElement()));
}
}
}