[POO] UserInput.input() update

This commit is contained in:
TiagoRG 2023-03-04 20:25:05 +00:00
parent 4ea1f1c65a
commit 5fcb04dd17
1 changed files with 1 additions and 1 deletions

View File

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