title: How to get observable object value?
body: <p>In the observer class in java, how can I refer to the Observable objects values, such as its name, from the update method? </p>
  
  <p>say I have this update method in the observer class:</p>
  
  <pre><code>public void update(Observable o, Object arg){
  
      System.out.println(o.name); // I want to get object o's name value but I don't know how
  </code></pre>
  
  <p>any help? thanks.</p>