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!

Why does Stack<int> blah; not work?

807603Dec 1 2007 — edited Dec 1 2007
I did do the import java.util.Stack;

So why does it give this error?
unexpected type
found   : int
required: reference
        Stack<int> blah;
              ^
1 error
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2007
Added on Dec 1 2007
6 comments
644 views