Помогите разобраться
package com.javarush.task.task18.task1817;
import java.io.FileReader;
import java.io.IOException;
import java.lang.Math.*;
/*
Пробелы
*/
public class Solution {
public static void main(String[] args) throws IOException{
int count_main =0;
int count_probel=0;
try (FileReader fileReader = new FileReader(args[0])) {
while (fileReader.ready()) {
count_main++;
char readChar = (char) fileReader.read();
if(readChar == ' '){
count_probel++;
}
}
}
double value = (count_probel/count_main)*100;
double scale = Math.pow(10, 2);
double result = Math.ceil(value * scale) / scale;
System.out.println((result));
}
}