title: Java class method access
body: <p>Back into Java but i'm lost on some basic referencing </p>
  
  <p>If i have for example:
  how do i refer to method test2 or test3 from within method problem within class b?</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <pre><code>public class zz{
  
  a1=new a();
  
  // i can do 
  
  a1.b1.test();
  
  public test2()
  {
  } 
  
  }
  
  public class a{
  
  b b1= new b()
  
  public test3()
  {
  }
  
  }
  
  
  public class b{
  
  public test()
  {
  
  }
  
  public problem()
  {
  // but how do i refer to method test2 or test3 from here?
  
  something like
  
  zz.test2();
  
  zz.a1.test3();
  
  }
  
  }
  </code></pre>