Помогите, пожалуйста
package com.javarush.task.task18.task1821;
/*
Встречаемость символов
*/
import java.io.FileInputStream;
import java.io.IOException;
import java.util.TreeMap;
public class Solution {
public static void main(String[] args) {
String fileName = args[0];
TreeMap<Integer, Integer> hashMap = new TreeMap<>();
for (int i = 0; i < 128; i++) {
hashMap.put(i, 0);
}
try (FileInputStream fis = new FileInputStream(fileName)) {
while (fis.available() > 0) {
int i = fis.read();
hashMap.put(i, hashMap.get(i) + 1);
}
}
catch ( IOException exception) {
System.out.println(exception);
}
for (Integer i:hashMap.keySet()
) {
System.out.print(Character.toChars(i) + "=" + hashMap.get(i) );
System.out.println();
}
}
}