mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-30 14:42:03 -08:00
18 lines
454 B
Java
18 lines
454 B
Java
import java.util.Scanner;
|
|
|
|
public class Buzzword {
|
|
|
|
public static void main(final String[] args) {
|
|
try (
|
|
// Scanner is a Closeable so it must be closed
|
|
// before the program ends.
|
|
final Scanner scanner = new Scanner(System.in);
|
|
) {
|
|
final BuzzwordSupplier buzzwords = new BuzzwordSupplier();
|
|
final UserInterface userInterface = new UserInterface(
|
|
scanner, System.out, buzzwords);
|
|
userInterface.run();
|
|
}
|
|
}
|
|
}
|