Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to turn Observable to a String[][]

 
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
Pie
Posts: 11945
212
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic