diff --git a/src/test/java/Unit8/Battleship.java b/src/test/java/Unit8/Battleship.java index 65cee25..c3791e8 100644 --- a/src/test/java/Unit8/Battleship.java +++ b/src/test/java/Unit8/Battleship.java @@ -75,6 +75,7 @@ else if (result == -1) } else if (ans.toLowerCase().equals("b")) System.out.println("\n" + b + "\n"); } + scan.close(); System.out.println("Game over!"); } }