In a class OuterClass i have a Thread InnerThread. In the Thread i need to access a method from OuterClass. How do i do this? I tried :

```
public class OuterClass{

   public static void main(String[]args){
      Runnable thread = new innerThread(param);
        new Thread(thread).start();

   public void method(param1, param2){
      System.out.println("Test method");
   } 

   public class InnerThread extends Thread{
      public void run(){
         System.out.println("Test thread")
         OuterClass.this.method(param1, param2);
      }
   }

}

```

but the programm doesnt go into the method. Why is that and how could it work?

*edit* Im sure the Thread is running because I perform other actions there and they work, and I put a print right at the start of method(param1, param2), so i'm sure it doesn't enter the method. I tried only method(param1, param2) whithout OuterClass.this as well and it didn't work either.