Can someone help me, I thought this was what the programm required. But is not verfying why?
package com.codegym.task.task18.task1817;
/*
Spaces
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class Solution {
public static void main(String[] args) throws IOException {
FileInputStream inputStream = new FileInputStream(args[0]);
int n1 = inputStream.available();
int n2 = 0;
while(inputStream.available() > 0){
int t = inputStream.read();
if(t == 32) {
n2++;
}
}
inputStream.close();
System.out.println( n1/(n2*100));
}
}