I dont know what is the problem this time.
package de.codegym.task.task18.task1820;
import java.io.*;
import java.util.*;
/*
Zahlen runden
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
String d = reader.readLine();
String s = reader.readLine();
reader.close();
FileInputStream filo = new FileInputStream(d);
FileOutputStream auto = new FileOutputStream(s);
StringBuilder bob = new StringBuilder();
//building a String wich contains the hole input
while(filo.available()>0){
int j = filo.read();
char b = (char) j;
bob.append(b);
}
filo.close();
String e = String.valueOf(bob);
//splitting the String in smaller Strings at every " "
String[] array = e.split(" ");
for(String h : array){
double j = Double.parseDouble(h);
long i = Math.round(j);
auto.write((int)i);
auto.write(32);
}
auto.close();
}
}