Removing key value pairs from a HashTable
Posted on 2002-04-16
I have a HashTable - charges - and I want to remove a key value pair so I do the following:
remove_key = charges.remove(packages + " " + tariff_id + " 0");
remove_key is an Object and packages and tariff_id are Strings.
This compiles and the key value pairs are removed however I get a "Exception in main: null" when I try to create an instance of the class where I am executing this statement. If I comment out this line I do not get the exception.