где тут затаилась ошибка ?
package com.javarush.task.task18.task1820;
import java.io.*;
import java.util.*;
/*
Округление чисел
*/
public class Solution {
public static void main(String[] args) throws Exception{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String f1 = reader.readLine();
String f2 = reader.readLine();
FileInputStream inf1 = new FileInputStream(f1);
FileOutputStream otf2 = new FileOutputStream(f2);
byte[] buff = new byte[inf1.available()];
inf1.read(buff);
inf1.close();
String s = new String(buff);
String[] doub = s.split(" ");
for(String string : doub){
long tmp = Math.round(Double.parseDouble(string));
int gh = (int)tmp;
byte n = (byte)gh;
byte[] symbol = (Byte.toString(n)).getBytes();
otf2.write(symbol);
String space = " ";
byte[] spac = space.getBytes();
otf2.write(spac);
}
otf2.close();
}
}