Class MoreRecursionMain
Object
MoreRecursionMain
Main class for program initialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain function for our program.static voidmethodToCall(int choice, Scanner scnr) This method uses a switch case with the users choice of 1, 2, 3, or 0 depending on the choice one of the cases calls the corresponding method from theMoreRecursionHelperobject.static voidThis method prints out the choices available when calling methods.
-
Constructor Details
-
MoreRecursionMain
public MoreRecursionMain()
-
-
Method Details
-
methodToCall
This method uses a switch case with the users choice of 1, 2, 3, or 0 depending on the choice one of the cases calls the corresponding method from theMoreRecursionHelperobject.- Parameters:
choice-scnr-
-
printChoices
public static void printChoices()This method prints out the choices available when calling methods. -
main
Main function for our program.- Parameters:
args-
-