JGRASP Only (Java language): B02 – Occurrences of each digit ina text Write a program that will ask the user for a text message.Then, your program will recursively check character by character,counting the occurrences of each digit (0 to 9). Hint: Define thefollowing method. public static int[] countOccurrences(String text,int index, int[] counts)
Expert Answer
An answer will be send to you shortly. . . . .