I need a help
package com.codegym.task.task18.task1821;
/*
Symbol frequency
*/
import sun.misc.ASCIICaseInsensitiveComparator;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class Solution {
public static void main(String[] args) throws IOException {
String a = args[0];
InputStream in = new FileInputStream(a);
Map<Integer, Integer> map = new HashMap<>();
map.put(121, 1);
Map<Character, Integer> result = new HashMap<>();
int count = 1;
for(int i = 0; i<in.available(); i++){
int x = 121; // char 'y'
char y = (char)x;
if(map.containsKey(y)){
map.replace(x, count+1);
}
else map.put(x, 1);
}
in.close();
Map<Integer, Integer> maps = new TreeMap<Integer, Integer>(map);
for(Map.Entry<Integer, Integer> mapp : maps.entrySet()){
int p = mapp.getKey();
int s = mapp.getValue();
char k = (char)p;
result.put(k, s);
}
for (Map.Entry<Character, Integer> mappp: result.entrySet()) {
System.out.println((map.containsKey(y)) ? "true" : "false");
}
}
}