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!

declaring boolan/integers ArrayList

807600Nov 19 2007 — edited Nov 19 2007
Hi im trying to create an arrayList but of boolean type any ideas how i do this?
    private List<boolean> list = new ArrayList<boolean>();
    private List<Integer> list2 = new ArrayList<Integer>();
Here's my attempt and it says ''type java.awt.List does not take parameters'' when i try to compile.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2007
Added on Nov 19 2007
2 comments
107 views