Skip to content

Instantly share code, notes, and snippets.

@aliwo
Created November 11, 2020 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliwo/3a7f1d60438df0127aabd69868e6c3fe to your computer and use it in GitHub Desktop.
Save aliwo/3a7f1d60438df0127aabd69868e6c3fe to your computer and use it in GitHub Desktop.
public class ManualBallsGenerator {
Scanner scanner;
public ManualBallsGenerator() {
this.scanner = new Scanner(System.in);
}
public BaseBalls generate() {
System.out.println("숫자 3개 입력");
return new BaseBalls(
new ArrayList<>(Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt()))
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment