public class Ants1 { /** * Demonstrate basic methods * Silly ant song */ public static void main(String[] args) { verse1(); chorus(); verse2(); chorus(); } public static void verse1(){ System.out.println("The ants go marching 1 by 1 hurrah, hurrah..."); System.out.println("The ants go marching 1 by 1 hurrah, hurrah..."); System.out.println("The ants go marching 1 by 1 "); System.out.println("The little one stops to suck his thumb"); System.out.println(""); } // end verse1 public static void verse2(){ System.out.println("The ants go marching 2 by 2 hurrah, hurrah..."); System.out.println("The ants go marching 2 by 2 hurrah, hurrah..."); System.out.println("The ants go marching 2 by 2 "); System.out.println("The little one stops to tie his shoe"); System.out.println(""); } // end verse1 public static void chorus(){ System.out.println("...and they all go marching"); System.out.println("down"); System.out.println("to the ground"); System.out.println("to get out"); System.out.println("of the rain"); System.out.println("Boom boom boom boom boom boom boom boom"); System.out.println(""); } }