/* File: HelloWorldBad.java - March 2011 */ package l04; /** * A non terminating (and eventually crashing) recursive algorithm * that just keeps printing out "Hello World" (and never "Done") * *BAD EXAMPLE* * * Sample usage: java l04.HelloWorldBad * * @author Michael Albert * */ public class HelloWorldBad{ public static void main(String[] args) { helloWorld(); } public static void helloWorld() { System.out.println("Hello World"); helloWorld(); System.out.println("Done"); } }