public class OldMacDonald {
    public static void main(String[] args) {
        // print title
        // System.out.println("Old MacDonald Had a Farm");
        // System.out.println( );
        
        // use printTitle method (method call)
        // printTitle();
        // printTitle();
        printTitle();

        // print first verse
        printFirstVerse();

        // print second and third verses (not done yet)
    }
    
    // method to print the title
    public static void printTitle( ) {
      // instructions for the method
      System.out.println("Old MacDonald Had a Farm");
      System.out.println( );
    }
    
    // method to print first verse
    public static void printFirstVerse() {
      printOldLine();
      System.out.println("And on his farm he had a cow, E-I-E-I-O");
      System.out.println("With a moo-moo here and a moo-moo there");
      System.out.println("Here a moo there a moo");
      System.out.println("Everywhere a moo-moo");
      printOldLine();
      System.out.println( );
    }  
    
    // print the Old Macdonald line
    public static void printOldLine() {
      System.out.println("Old Macdonald had a farm, E-I-E-I-O");
    }
    
}








