Skip to content

Commit

Permalink
fix(8): close scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Feb 5, 2024
1 parent d8abe42 commit 898d2a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/java/Unit8/Battleship.java
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
}

0 comments on commit 898d2a4

Please sign in to comment.