We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 555b715 commit 652d227Copy full SHA for 652d227
Others/CountChar.java
@@ -14,7 +14,7 @@ public static void main(String[] args) {
14
Scanner input = new Scanner(System.in);
15
System.out.print("Enter your text: ");
16
String str = input.nextLine();
17
-
+ input.close();
18
System.out.println("There are " + CountCharacters(str) + " characters.");
19
}
20
0 commit comments