* @param max the maximum acceptable value (inclusive)
* @return a float value entered by the user, or {@code defaultValue} if empty input
*/
- private float askFloat(String prompt, float defaultValue, float min, float max) {
+ public float askFloat(String prompt, float defaultValue, float min, float max) {
while (true) {
String input = askString(prompt, valueOf(defaultValue));
try {
* @param max the maximum acceptable value (inclusive)
* @return a long value entered by the user, or {@code defaultValue} if empty input
*/
- private long askLong(String prompt, long defaultValue, long min, long max) {
+ public long askLong(String prompt, long defaultValue, long min, long max) {
while (true) {
String input = askString(prompt, valueOf(defaultValue));
try {