Sunday, November 7, 2010

Hashmap with random key values in java

Random r = new Random();
int i = r.nextInt();
HashMap store = new HashMap();
store.put(i, values);//Here values need to be retrieved.

No comments:

Post a Comment