[POO] UserInput.input() update

This commit is contained in:
TiagoRG 2023-03-04 20:25:05 +00:00
parent e470bfb9b7
commit a6c02e82e0
Signed by untrusted user who does not match committer: TiagoRG
GPG Key ID: DFCD48E3F420DB42
1 changed files with 1 additions and 1 deletions

View File

@ -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) {