Skip to content

Commit 7a52313

Browse files
committed
Update Cycles.java
closing Scanner in
1 parent 0eef7f4 commit 7a52313

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DataStructures/Graphs/Cycles.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public Cycle() {
3434
end = in.nextInt();
3535
adjacencyMatrix[start][end] = 1;
3636
}
37+
in.close();
3738

3839
}
3940

0 commit comments

Comments
 (0)