K
Kevin
Did not find out the answer after some google:
how can we create a static hashtable with some initial values there?
static Hashtable ht = new Hasthable();
will only create a empty one. Suppose I want to put some Integer
values as keys and values of this hashtable, how can I do that?
The reason for it is that I am writing a "utility" class, with all the
functions as static. These functions will need to check a fixed
hashtable for some operations.
Thanks a lot.
how can we create a static hashtable with some initial values there?
static Hashtable ht = new Hasthable();
will only create a empty one. Suppose I want to put some Integer
values as keys and values of this hashtable, how can I do that?
The reason for it is that I am writing a "utility" class, with all the
functions as static. These functions will need to check a fixed
hashtable for some operations.
Thanks a lot.