Skip to content
Snippets Groups Projects
Commit e7aa4d2a authored by Mohamed Taarit's avatar Mohamed Taarit
Browse files
parents 09ea1016 bf3f0235
Branches
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