I really don't understand this one. In my head I did everything right. I even copied the solutions made by others, and it just doesn't verify.
Could somebody help me with this one?
Thanks!!
package com.codegym.task.task18.task1816;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class Solution {
public static void main(String[] args) throws Exception {
FileInputStream fileInputStream = new FileInputStream(args[0]);
int i;
int counter = 0;
while(fileInputStream.available() > 0) {
i = fileInputStream.read();
if((i >= 65 && i <= 90) || (i >= 97 && i <= 122)) {
counter++;
}
fileInputStream.close();
System.out.println(counter);
}
}
}