Помогите
package com.javarush.task.task18.task1817;
import java.io.*;
/*
Пробелы
*/
public class Solution {
public static void main(String[] args) throws IOException {
// FileInputStream fileInputStream = new FileInputStream("C:\\Users\\Ingrida\\Desktop\\TestCodeWithFile\\withText.txt");
try(FileInputStream fileInputStream = new FileInputStream(args[0]);) {
int space = 0;
int countFileBytes = fileInputStream.available();
while (fileInputStream.available() > 0) {
if (fileInputStream.read() == 32) space++;
}
float letter = (float) (space / countFileBytes * 100);
System.out.printf("%.2f", letter);
}
}
}