We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4e3f3 commit 65c0464Copy full SHA for 65c0464
src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java
@@ -57,9 +57,11 @@ public static void main(String[] args) {
57
obj.go();
58
}
59
60
- public void go() { // shows distance to all vertices // Interactive run for understanding the
61
- try ( // class first time. Assumes source vertex is 0 and
62
- Scanner sc = new Scanner(System.in)) {
+ public void go() {
+ // shows distance to all vertices
+ // Interactive run for understanding the
63
+ // class first time. Assumes source vertex is 0 and
64
+ try (Scanner sc = new Scanner(System.in)) {
65
int i;
66
int v;
67
int e;
0 commit comments