public interface Runnable { void run(); }
public class MyRunnable implements Runnable { public void run() { // Task statements go here . . . } }