I've got something set up, now I want to have a string saved, with an Date attached to it.
private HashMap<String, Date> something = new HashMap<String, Date>();
The problem I'm having is that I only want 1 thing inside this HashMap, so when I put a new String, Date in, the old one gets removed.
I've got this myself by just calling clear before I add one, but then I came on to a different problem:
String current = something.get ????
As you see above, I just want to get the 1 entry inside. Without the date.
Is there a better alternative? Or am I seeing something completely wrong?