Skip to content

Commit

Permalink
Merge pull request #24 from igormordaski7/main
Browse files Browse the repository at this point in the history
atualização de métodos
  • Loading branch information
Nagel-P authored Jun 22, 2024
2 parents 50efa57 + 4f9b2e7 commit 614a88d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sistema Pizzaria/src/Console.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class Console {
private static Scanner leitor = new Scanner(System.in);

public static int lerInt() {
String msg = "Digite um valor 'int': ";
String msg = "";
return lerInt(msg);
}

Expand All @@ -21,7 +21,7 @@ public static int lerInt(String msg) {
break;

} catch (InputMismatchException exception) {
System.out.print("\nValor inválido. Digite um valor 'int': ");
System.out.print("");

} finally {

Expand All @@ -36,7 +36,7 @@ public static int lerInt(String msg) {

public static float lerFloat() {

String msg = "Digite um valor 'float': ";
String msg = "";
return lerFloat(msg);
}

Expand All @@ -51,7 +51,7 @@ public static float lerFloat(String msg) {
break;

} catch (InputMismatchException exception) {
System.out.print("\nValor inválido. Digite um valor 'float': ");
System.out.print("");

} finally {

Expand All @@ -66,7 +66,7 @@ public static float lerFloat(String msg) {
}

public static String lerString() {
String msg = "Digite uma 'String': ";
String msg = "";
return lerString(msg);
}

Expand Down

0 comments on commit 614a88d

Please sign in to comment.