style: do not suppress try (#5167)

This commit is contained in:
Piotr Idzik
2024-05-26 23:32:36 +02:00
committed by GitHub
parent 37c2a96fe2
commit ea4dc15a24
7 changed files with 0 additions and 15 deletions

View File

@ -116,7 +116,6 @@ class BellmanFord /*
System.out.println();
}
}
sc.close();
}
}

View File

@ -22,7 +22,6 @@ public final class ReverseStack {
for (i = 0; i < n; i++) {
stack.push(sc.nextInt());
}
sc.close();
reverseStack(stack);
System.out.println("The reversed stack is:");
while (!stack.isEmpty()) {