class MyRunnable implements Runnable {
  public void run() {
    methodA();
  }
}
public class Ex {
  public static void main(String[] args) {
    MyRunnable mr = new MyRunnable();
    Thread mt = new Thread(mr);
    mt.start();
  }
}
閉じる

Copyright FUJITSU