aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes problem of downcast Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "problem of downcast" Watch "problem of downcast" New topic
Author

problem of downcast

David George
Greenhorn

Joined: Aug 23, 2005
Posts: 10
I upcast a String[][] to Object,but do not know how to downcast the Object to String[][].
Thank you for your response.Waiting.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Hi Sheng,

Is this related to your post "how to turn Observable to a String[][]"?

Regards, Andrew
[ August 26, 2005: Message edited by: Andrew Monkhouse ]

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Jesse Xie Y.S.
Greenhorn

Joined: Feb 09, 2004
Posts: 20
Just do it:

String[][] strArray = new String[][]{};
Object obj=strArray;
strArray=(String[][])obj;


MOON -- SCJP1.2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem of downcast