Next bug. java.util.Hashtable.clear() The index of for statement must be initialized as "keys.length-1", not just "keys.length". It throws ArrayIndexOutOfBoundsException. -- Maxim Kizub