Convert HashMap to an array
Map aMap = new HashMap ( ) ;
aList = new ArrayList ( aMap.values ( ) ) ;
aMap.clear ( ) ;
Labels: collection
Map aMap = new HashMap ( ) ;
aList = new ArrayList ( aMap.values ( ) ) ;
aMap.clear ( ) ;
Labels: collection
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home