Выдает NumberFormatException в 19 строке
package com.javarush.task.task18.task1820;
/*
Округление чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
FileInputStream f1 = new FileInputStream(br.readLine());
FileOutputStream f2 = new FileOutputStream(br.readLine());
byte[] b1 = new byte[f1.available()];
f1.read(b1);
String[] s = b1.toString().split(" ");
String string = "";
for (String s2: s) {
Math.round(Double.parseDouble(s2));
string = s2;
}
f2.write(string.getBytes());
br.close();
f1.close();
f2.close();
}
}