Вроде все выводит Не пойму в чем проблема
package com.javarush.task.task18.task1803;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
/*
Самые частые байты
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String name = reader.readLine();
FileInputStream fileInputStream = new FileInputStream(name);
HashMap<Integer,Integer> bytes = new HashMap<>();
int count = 1;
while (fileInputStream.available() > 0) {
int m = fileInputStream.read();
boolean c = bytes.containsKey(m);
if (c == true) {
int v = bytes.get(m) + 1;
bytes.put(m, v);
}
else {
bytes.put(m,count);
}
}
fileInputStream.close();
for (HashMap.Entry<Integer,Integer> pair : bytes.entrySet())
{
int key = pair.getKey();
int value = pair.getValue();
System.out.print(key + "=" + value + " ");
}
}
}