Что ещё выводит моя программа? Я не понимаю.
package com.javarush.task.task18.task1817;
import java.io.*;
/*
Пробелы
*/
public class Solution {
public static void main(String[] args) throws Exception {
FileInputStream inputStream = new FileInputStream(args[0]);
int simvol = inputStream.available();
int probel = 0;
while (inputStream.available() > 0) {
int i = inputStream.read();
if (" ".equals(i)) {
probel++;
}
}
inputStream.close();
double answer = ((double) simvol / probel) * 100;
System.out.printf("%.2f", answer);
}
}