• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to turn Observable to a String[][]  RSS feed

 
David George
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public void update(Observable observable,Object object)
{
setRecords(String[][] records);
}

a String[][] was turned to observable,but i do not know how to turn the observable back to String[][].
Thank you for your response.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12105
246
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sheng,

You cannot turn an Observable into a String[][]. The first parameter (Observable o) is the object that called notifyObservers. It is the second parameter (Object arg) that corresponds to the argument you provided when you called notifyObservers(Object arg).

Regards, Andrew
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!