Im writing a project using an API .
So overall my program looks like so .
public class Programm extends bridge {
Client Eclient = new Client() ;
public static void main(String[] args) {
Programm MyProgramm = new Programm();
MyProgramm.MyMethod();
public void MyMethod(){
Runnable countdown = new flipper();
Thread worker = new Thread(countdown);
worker.start();
}
}
abstract bridge implements API{}
class flipper implements runnable {
public void run(){MyProgramm.Eclient.ApiMethod()}
}
Basiclly i need to access the EClient class instance as it would be accesed by MyProgramm instance from class flipper
Option 2: Make Flipper an inner class