the program works well but I don't want to approve it why?
package pl.codegym.task.task18.task1820;
/*
Zaokrąglanie liczb
*/
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws IOException {
// double a = 4.51;
// a = Math.round(a);
// int b = (int) a;
// System.out.println(b);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
FileInputStream inputStreamReader = new FileInputStream(bufferedReader.readLine());
PrintWriter zapis = new PrintWriter(bufferedReader.readLine());
Scanner scanner = new Scanner(inputStreamReader);
List<Byte> list = new ArrayList<>();
String a = scanner.nextLine();
String[] b = a.split(" ");
Double d;
for(int i = 0; i < b.length ; i++)
{
d= Double.parseDouble(b[i]);
byte c = (byte) Math.round(d);
zapis.print(c + " ");
}
inputStreamReader.close();
zapis.close();
scanner.close();
}
}