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 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: 11465
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: problem of downcast