Skip to content
Snippets Groups Projects
Commit bf3f0235 authored by Gabriel Mille's avatar Gabriel Mille
Browse files

correctiob new input

parent 60887793
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,9 @@ public class Input { ...@@ -28,9 +28,9 @@ public class Input {
} }
public void newInput() throws IOException { public void newInput() throws IOException {
BufferedReader in= new BufferedReader( new InputStreamReader(System.in));
do { do {
BufferedReader in= new BufferedReader( new InputStreamReader(System.in));
try { try {
try { try {
setInput(in.readLine()); setInput(in.readLine());
...@@ -43,7 +43,7 @@ public class Input { ...@@ -43,7 +43,7 @@ public class Input {
} catch (Exception e) { } catch (Exception e) {
System.err.println(e.getMessage()+": Contact support"); System.err.println(e.getMessage()+": Contact support");
} finally { } finally {
in.close(); // in.close();
} }
} }
while (!validInput()); while (!validInput());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment