Question: Please help me write this Java function. We are using the latest version of Java 8. Thank You! Write a Java program called Histogram.java that
Please help me write this Java function. We are using the latest version of Java 8. Thank You!


Write a Java program called Histogram.java that reads whole numbers from a user. Your program should display a list of distinct numbers in the input and the occurrence of each distinct value. After that, your program should draw a vertical bar for the occurrences using the Unicode black star, . (In Java, you can write the Unicode black star as \u2605. If \u2605 gives you spacing issues, try \u2b51 or lu2022 or choose your own Unicode character.) In the program, you can assume that the number of input values from a user is less than or equal to 30. Additionally, you can assume that the input number itself is between 0 and 9 A sample run of your program should be like below: How many input values [max: 30]? Enter 5 numbers 2 2 Number Occurrence Vertical Bar == -=-=-=-= INo | |23456789
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
