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