diff --git a/Others/CountChar.java b/Others/CountChar.java index 1c8dcfea..25f23d61 100644 --- a/Others/CountChar.java +++ b/Others/CountChar.java @@ -14,7 +14,7 @@ public class CountChar { Scanner input = new Scanner(System.in); System.out.print("Enter your text: "); String str = input.nextLine(); - + input.close(); System.out.println("There are " + CountCharacters(str) + " characters."); }