public class Solution {
public static void main(String[] args) throws IOException {
FileInputStream inStream = new FileInputStream(args[0]);
int[] bytes = new int[256];
while (inStream.available() > 0) {
int charInt = inStream.read();
bytes[charInt] = bytes[charInt]++;
}
for (int i = 0; i < bytes.length; i++) {
System.out.println((char) i + " " + bytes[i]);
}
inStream.close();
}
}
у меня почему то вот эта строка не увеличивается
bytes[charInt] = bytes[charInt]++;
Почему???