Class MoreRecursionMain
Object
MoreRecursionMain
Main class for program initialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main function for our program.static void
methodToCall
(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 theMoreRecursionHelper
object.static void
This 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 theMoreRecursionHelper
object.- 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
-
-