Please help
package com.codegym.task.task18.task1817;
/*
Spaces
*/
import java.io.FileInputStream;
import java.math.RoundingMode;
import java.text.DecimalFormat;
public class Solution {
private static DecimalFormat df2 = new DecimalFormat("#.##");
public static void main(String[] args) throws Exception {
double n1 = 0.00d;
double n2 = 0.00d;
double result = 0.00d;
String filename = args[0];
//String filename = "c:\\henk\\business\\testing.txt";
FileInputStream file = new FileInputStream(filename);
byte[] fullData = new byte[file.available()];
file.read(fullData);
file.close();
for (byte b: fullData){
if (b==32)
n2++;
else
if ((b!= 13)&& (b!=10))
n1++;
}
result = ((n2/n1)*100);
df2.setRoundingMode(RoundingMode.UP);
System.out.println(df2.format(result));
}
}