HashTable under Java 1.5
I've just changed from Java 1.4 to Java 1.5.
With the mod to Hashtables my old code was
Boolean valid;
String hour, minute, second, day, month, year;
// Logic to populate the values.
Hashtable values =new Hashtable();
values.put("valid", valid);
values.put("d1", hour + minute);
values.put("d2", second + day);
values.put("d3", month + year);
Under Java 1.5 I got the "unchecked call to put(K,V)" error.
So now I wish to declare as generic Object for the V type.
Hashtable<String, Object> values =new Hashtable<String, Object> ();
Is this ok or should I declare <String, String> and use a string version for my Boolean (ie. "True", "False")
Thansk in advance

