This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes casting question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "casting question" Watch "casting question" New topic
Author

casting question

k Oyedeji
Ranch Hand

Joined: Jul 07, 2002
Posts: 96
Hi
I have a hopefully easy question. If i have collection which contains objects of specific type and then i iterate through this collection am i right in saying the iterator will return an object of class Object? Can I then cast the objects back to their original datatypes? is that possible without loosing any variable information?
Thanks
Jon Strayer
Ranch Hand

Joined: Dec 04, 2002
Posts: 133
Yes.


Jon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: casting question