Write a Java program using a count array to generate 200 randomintegers in the range of 0 and 999 (both inclusive). Then find theappearance frequency of each digit (0-9) in these numbers, andprint a frequency histogram.
When you split an integer, make sure you get all 3 digits. Forexample:
number digit1 digit2 digit3
350 3 5 0
45 0 4 5
8 0 0 8
For each digit from 0 to 9
* Display the digit and the frequency count
* Display the horizontal frequency bar of asterisks, forexample, digit 6 with a frequency count 24 will display a bar likethis
6 (24): ***********************
Everytime the program runs it should
OR
OR