Question: Write a Java program that asks the user to enter a string on the console. Output the the number of times each alphabet appears (in
Write a Java program that asks the user to enter a string on the console. Output the the number of times each alphabet appears (in ascending alphabetical order) in the string as a table with two columns: Alphabet and count. (Need to output only those alphabets that appear in the string - zero counts need not be shown. Treat uppercase as lowercase).
Example: String: "Dallas is great" Output:
a 3 d 1 e 1 g 1 i 1 l 2 r 1 s 2 t 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
