/**
* This class contains the methods that Lab1 needs
*
* @author Elizabeth Adams
*
*/
public class PrintVerse
{
/**
* This method
prints out all of the stanzas
*
* @param Number of
bottles of pop to use in verse
* @return Number
of bottles - 1
*/
public static int normalStanza(int verse)
{
System.out.println(verse
+ " bottles of pop on the wall");
System.out.println(verse + " bottles of pop");
System.out.println("If one of those bottles should happen to fall");
verse = verse -1;
System.out.println(verse
+ " bottles of pop on the wall");
System.out.println();
return verse;
}
/**
* This method
prints out the next to the last stanza
*
* @param none
* @return 1
*/
public static int almostDone()
{
System.out.println(" 2 bottles of pop on the
wall");
System.out.println(" 2 bottles of pop");
System.out.println("
If one of those bottles should happen to fall");
System.out.println(" 1 bottle of pop on the
wall");
System.out.println();
return 1;
}
/**
* This method
prints out the last stanza
*
* @param none
* @return 0
*/
public static int lastStanza()
{
System.out.println(" 1 bottle of pop on the
wall");
System.out.println("
1 bottle of pop");
System.out.println(" If that bottle should happen to
fall");
System.out.println(" No bottles of pop on the
wall");
System.out.println();
return 0;
}
} // end class