/* Helene Martin, Garfield AP CS, 2010
	Demonstration of methods calling methods
	We put a break point at the first statement in main and
	used the jGrasp debugger to look at the call stack */
public class FlowControl { 
    public static void main(String[] args) { 
        methodOne(); 
        methodThree(); 
        methodTwo(); 
    } 

    public static void methodOne() { 
        System.out.println("foo"); 
        methodThree(); 
    } 

    public static void methodTwo() { 
        methodOne(); 
		  System.out.println("bar"); 
    } 

    public static void methodThree() { 
        System.out.println("baz"); 
    } 
} 
