import java.util.Vector; class MyClass extends Vector implements Runnable { public void run(String message) { System.out.println("in run() method: " + message); } } public class MainClass { public static void main(String args[]) { MyClass g = new MyClass(); Thread t = new Thread(g); t.start(); } }