Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to create array of hashmaps?

user8769643Nov 30 2009 — edited Nov 30 2009
Hi,
can someone help me how to create an array of hashmaps. Iam trying to do something like this and it gives me compiler error.
 Map<Integer, Map<Integer, Boolean>>[] map1 = new HashMap<Integer, Map<Integer, Boolean>>()[10];
Appreciate your help in advance

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2009
Added on Nov 30 2009
15 comments
1,444 views