Skip to Main Content

Java APIs

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 store an integer in an Object variable

843793Jul 18 2002 — edited Jul 18 2002
For a summer research project I am demonstrating interfaces and how they work, it is somewhat trivial but I have gotten stuck. all the code past the interface is using Objects. But the user is prompted for an integer. Is there a way i can store this integer in an Object? I have tried casting, but that didn't work out for me.

thanks

Jason
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2002
Added on Jul 18 2002
1 comment
90 views