JAVA Write a program to analyze a text file (a novel or a report, or just a sequence of letters or symbols), by reading the file into a byte array, convert to a string, and then scan the string letter by letter to count the frequencies of all unique characters in the text, after that, the letters with frequencies greater than 0 and the frequencies are reported side by side. All members of the class can be static.

For example if the text file test1.txt contains AAACMJKYYKNa1C

Your output should look like Ascii code:

the char: frequency

49: 1: 1

65: A: 3

67: C: 2

74: J: 1

75: K: 2

77: M: 1

78: N: 1

89: Y: 2

97: a: 1

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now