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!

How do i make a list of floats?

807588Feb 21 2009 — edited Feb 21 2009
I'm new to java, so please bare with me.
I want to make a list of floating point numbers so this is how I implemented it:

List<float> number = new ArrayList<float>;

but java give me this error "dimensions expected after this token" looking online and reading my book has proved too useful so I figured i'd ask here. Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2009
Added on Feb 21 2009
2 comments
426 views