From a6c02e82e0bd25d8c560b31ab42d56bb34b0ce7c Mon Sep 17 00:00:00 2001 From: TiagoRG <35657250+TiagoRG@users.noreply.github.com> Date: Sat, 4 Mar 2023 20:25:05 +0000 Subject: [PATCH] [POO] UserInput.input() update --- 1ano/2semestre/poo/src/utils/UserInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1ano/2semestre/poo/src/utils/UserInput.java b/1ano/2semestre/poo/src/utils/UserInput.java index 17ba119..78cc134 100644 --- a/1ano/2semestre/poo/src/utils/UserInput.java +++ b/1ano/2semestre/poo/src/utils/UserInput.java @@ -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) {