This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes how to turn Observable to a String[][] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "how to turn Observable to a String[][]" Watch "how to turn Observable to a String[][]" New topic
Author

how to turn Observable to a String[][]

David George
Greenhorn

Joined: Aug 23, 2005
Posts: 10
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

Joined: Mar 28, 2003
Posts: 11404
    
  81

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
jQuery in Action, 2nd edition
 
subject: how to turn Observable to a String[][]
 
Similar Threads
Observer and Observable
Observable not working properly...
Could someone explain the listener pattern
problem of downcast
"Observable" packages?