|
|
|
@ -26,7 +26,8 @@ public class CounterMain {
|
|
|
|
|
System.out.println("Enter In The Number That You Want To Count:\n");
|
|
|
|
|
int userInput = in.nextInt();
|
|
|
|
|
|
|
|
|
|
CounterHelper helper = new CounterHelper(new ByTwos(), new ByThrees(), new ByFives());
|
|
|
|
|
CounterHelper helper = new CounterHelper(new ByOnes(), new ByTwos(), new ByThrees(), new ByFours(),
|
|
|
|
|
new ByFives());
|
|
|
|
|
helper.doInteractive(userInput);
|
|
|
|
|
|
|
|
|
|
System.out.println("Enter In The Number Of Times You Want To Count:\n");
|
|
|
|
@ -35,6 +36,5 @@ public class CounterMain {
|
|
|
|
|
helper.displayCounter(userIterations);
|
|
|
|
|
in.close();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|