• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem of downcast

 
David George
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jesse Xie Y.S.
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just do it:

String[][] strArray = new String[][]{};
Object obj=strArray;
strArray=(String[][])obj;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic