Convert 20_Buzzword to Java

Provide the output PrintStream dependency to UserInterface in the
constructor instead of have it hard coded to System.out.
This commit is contained in:
Brax Antti (Oy Samlink Ab)
2022-01-12 14:33:55 +02:00
parent 3e9f1354b3
commit c8633c6051
2 changed files with 27 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ public class Buzzword {
) {
final BuzzwordSupplier buzzwords = new BuzzwordSupplier();
final UserInterface userInterface = new UserInterface(
scanner, buzzwords);
scanner, System.out, buzzwords);
userInterface.run();
}
}