package com.codegym.task.task18.task1821;

import java.io.FileReader;
import java.io.IOException;

public class Solution {
    public static void main(String[] args) throws IOException {
        int[] aSCII = new int[128];
        try (FileReader reader = new FileReader(args[0])) {
            while(reader.ready()){
                aSCII[reader.read()]++;
            }
        }
        for (int i = 0; i < aSCII.length; i++) {
            if (aSCII[i] != 0) {
                System.out.println((char)i + " " + aSCII[i]);
            }
        }
    }
}
I understand all in this code but I don'tk know why is correct? We not sort characerss and we don't calculate the frequency