Create a function that takes in an array of integers. Thefunction should return the number of occurrences for each integer,printed in numeric order.
Input:
{5, -12, 3, 0, 5, 27, -53, 0, -12, 0}
Output:
-53 has 1 occurrence.
-12 has 2 occurrences.
0 has 3 occurrences.
3 has 1 occurrence.
5 has 2 occurrences.
27 has 1 occurrence.
Please Use Java.
Expert Answer
An answer will be send to you shortly. . . . .