Skip to content

Commit

Permalink
Update CountCharacter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
adhilsalim committed Feb 23, 2023
1 parent d4012d8 commit 565c123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02 Frequency of Characters in String/CountCharacter.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args) {

// Getting character to be searched
System.out.print("Enter character to search: ");
key = scan.nextLine().charAt(0);
key = scan.next().charAt(0);

// Closing scanner
scan.close();
Expand Down

0 comments on commit 565c123

Please sign in to comment.