Added all the classes for counting

master
sgoudham 4 years ago
parent 8b45930137
commit 1010e508ce
No known key found for this signature in database
GPG Key ID: EF51A29A50FB754C

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

Loading…
Cancel
Save