File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes access data inside Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "access data inside Object" Watch "access data inside Object" New topic

access data inside Object

David Llewellyn
Ranch Hand

Joined: Feb 01, 2005
Posts: 45
When I call a method I've instantiated through reflection, it returns an Object. How can I get at whats stored in the object? It stores a Shape3D set of data.

This is the code I'm having trouble with:

Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Cast it.

I agree. Here's the link:
subject: access data inside Object
It's not a secret anymore!