package org.automon.helloworld;

/**
 * Created by stevesouza on 2/13/15.
 */
public class HelloWorld {

    public String getFirstName() {
        return "Steve";
    }

    public String getLastName() {
        return "Souza";
    }

    public void iMessedUp() {
        throw new RuntimeException("I really did it this time!");
    }

    public static void main(String[] args) throws Exception {
        HelloWorld hw = new HelloWorld();
        int loops = (args==null || args.length==0) ? 1 : Integer.valueOf(args[0]);
        for (int i=0;i<loops;i++) {
            System.out.println("loop "+i+" of "+loops);
            System.out.println(" "+hw.getFirstName());
            System.out.println(" "+hw.getLastName());
            try {
                hw.iMessedUp();
            } catch (RuntimeException excepion) {
                // hidden exception
            }
            Thread.sleep(1000);
        }
    }
}

@@ -587,16 +587,19 @@
 rintln(%22
+** 
 loop %22+i
@@ -638,32 +638,39 @@
 em.out.println(%22
+     **
  %22+hw.getFirstNa
@@ -708,16 +708,23 @@
 rintln(%22
+     **
  %22+hw.ge

refactor - make print lines more prominent in HelloWorld app