[POO] UserInput.input() update
This commit is contained in:
parent
4ea1f1c65a
commit
5fcb04dd17
|
@ -5,7 +5,7 @@ import java.util.Scanner;
|
||||||
public class UserInput {
|
public class UserInput {
|
||||||
public static String input(Scanner sin, String message) {
|
public static String input(Scanner sin, String message) {
|
||||||
System.out.print(message);
|
System.out.print(message);
|
||||||
return sin.next();
|
return sin.nextLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double getNumberBetween(Scanner sin, double min, double max) {
|
public static double getNumberBetween(Scanner sin, double min, double max) {
|
||||||
|
|
Loading…
Reference in New Issue