pls what`s wrong
package com.codegym.task.task18.task1803;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.*;
/*
Most frequent bytes
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String fileName = reader.readLine();
//create a FileInputStream object bound to fileName
FileInputStream inputStream = new FileInputStream(fileName);
Map<Integer, Integer> map = new HashMap<>();
Integer max = 0;
while (inputStream.available() > 0) //as long as there unread bytes
{
int data = inputStream.read(); // Read the Byte
if (map.containsValue(data)) map.replace(data, map.get(data)+1); // this adds one to the current count
else map.put(data,1); // if not already contained, adds with a count of 1
if(map.get(data) > max) max = map.get(data);
}
inputStream.close();
for (Map.Entry<Integer,Integer> entry : map.entrySet()) {
if (entry.getValue() > max) {
System.out.print(entry.getKey() + " \t ");
}
}
}
}