Подскажите, почему не принимает.
package com.javarush.task.task18.task1821;
/*
Встречаемость символов
*/
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.TreeMap;
public class Solution {
public static void main(String[] args) throws IOException {
InputStream is = new FileInputStream(args[0]);
byte[] buffer=null;
while (is.available()>0){
buffer = new byte[is.available()];
is.read(buffer);
}
is.close();
Map <Byte, Integer> treeMap = new TreeMap<>();
for(int i=0; i<buffer.length; i++){
if(!treeMap.containsKey(buffer[i])){
treeMap.put(buffer[i], 1);
} else{
int y = treeMap.get(buffer[i])+1;
treeMap.put(buffer[i], y);
}
}
for(Map.Entry <Byte, Integer> e : treeMap.entrySet()){
int c =(int) e.getKey();
//if(c>33 & c<128) {
System.out.println((char) c + " " + e.getValue());
//}
}
}
}