From 7a52313e218146eceb72a7c0fd86c03cb36aa7b2 Mon Sep 17 00:00:00 2001 From: Alexandra Englert Date: Fri, 20 Mar 2020 21:36:35 +0100 Subject: [PATCH] Update Cycles.java closing Scanner in --- DataStructures/Graphs/Cycles.java | 1 + 1 file changed, 1 insertion(+) diff --git a/DataStructures/Graphs/Cycles.java b/DataStructures/Graphs/Cycles.java index b6fd8b4c..5e085ab7 100644 --- a/DataStructures/Graphs/Cycles.java +++ b/DataStructures/Graphs/Cycles.java @@ -34,6 +34,7 @@ class Cycle { end = in.nextInt(); adjacencyMatrix[start][end] = 1; } + in.close(); }