private Map<String, Integer> collection = new HashMap<String, Integer>();
collection.put("row #1", 1);
collection.put("row #2", 2);
for ( String key : collection.keySet() ) {
System.out.println( key );
}
collection.put("row #1", 1);
collection.put("row #2", 2);
for ( String key : collection.keySet() ) {
System.out.println( key );
}
No comments:
Post a Comment