/* Java application that ** (1) creates a thread whose "resident runnable" is ** an instance of PrintGrisGrop, ** (2) starts that thread, ** (3) prints "Blorp" several times. ** ** The point is to demonstrate that the output produced ** by the thread and the output produced by the loop ** following the call to its start method could be ** interspersed, due to concurrent execution. */ public class GrisGrop2 { public static void main(String[] args) { Runnable grisGropObj = new PrintGrisGrop(); Thread grisGropThread = new Thread(grisGropObj); grisGropThread.start(); for (int i = 0; i != 10; i++) { System.out.println("Blorp!"); } } }