title: Java can't access class methods from class instance
body: <p>I've defined Class A which has number of methods. Then I have this other class i.e. a managed beanfor JSF. Within the bean I create an instance of Class A, but then I can't invoke any of the methods in class A. All fields are public and methods scope are public too. </p>
  
  <p>I considered this could be because of the bean nature (Although it shouldnt' be) so I created another class Tester.java and created the instance and that went ok. But again when I try to invoke the methods, nothing shows in suggestion list in Netbeans. What is going on?
  Thanks,</p>
  
  <p>Edit: The code:</p>
  
  <pre><code>public class Reservation {
  .... //setters &amp; getters
  
    public List&lt;DateTime&gt; getDateRange(DateTime start, DateTime end) {
    ......//body of method
    }
  
     public TreeMap&lt;DateTime, Integer&gt; getDatesTreeMap(){
     //body of method
     }
  
     public boolean checkRange() {
     ... body of method
     }
  
     }//end of class - no errors
  </code></pre>
  
  <p>and then this is how class instantiated:</p>
  
  <pre><code>Reservation booking = new Reservation();
  booking. ????? this is where the suggestions don't come up 
  </code></pre>
  
  <p>Thanks</p>