Skip to Main Content

Java Programming

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!

Cannot create generic array

806215Oct 18 2010 — edited Oct 18 2010
The following statement is flagged as an error by Eclipse:

ArrayList<Card>[] items = new ArrayList<Card>[52];

The statement seems fine to me. What is the problem? Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2010
Added on Oct 18 2010
5 comments
951 views