mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-31 23:17:38 -08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user