Java creating instance of a map object

Viewed 37503

Really simple question hopefully. I want to do something like this:

Map<String, String> temp = { colName, data };

Where colName, data are string variables.

Thanks.

3 Answers
Related