Page 1 of 1

1. Histogram Write a program that counts the occurrences of each letter of the alphabet in a string, given on the comman

Posted: Fri Jul 08, 2022 6:16 am
by answerhappygod
1. Histogram
Write a program that counts the occurrences of each letter ofthe alphabet in a string, given on the command line. It shouldprint a list of numbers, where the first is the number of a's, thesecond is the number of b's, etc. Ignore the case of the letters inthe string (i.e., AAbBCc and aABBcc have the same histogram).
To include spaces in the input string, enclose the entire stringin quotes. The entire string will then be args[0].
Examples
Please write in java and provide screenshot of output