Forum Stats

  • 3,853,778 Users
  • 2,264,267 Discussions
  • 7,905,444 Comments

Discussions

How to store an integer in an Object variable

843793
843793 Member Posts: 41,732 Green Ribbon
edited Jul 18, 2002 11:02PM in Generics
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

This discussion has been closed.