Created
November 11, 2020 12:57
-
-
Save aliwo/3a7f1d60438df0127aabd69868e6c3fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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