Back into Java but i'm lost on some basic referencing
If i have for example: how do i refer to method test2 or test3 from within method problem within class b?
Any help would be greatly appreciated.
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();
}
}