man findet bei google und in der lektüre hier nur wrapping von int auf Integer, in den aufgaben müssen wir aber methoden wrappen? was bringt das und wie? ich versteh das nicht
package de.codegym.task.task18.task1813;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
/*
AmigoOutputStream
*/
public class AmigoOutputStream extends FileOutputStream {
public static String fileName = "C:/tmp/result.txt";
public AmigoOutputStream(String fileName){
super(fileName);
}
public static void main(String[] args) throws FileNotFoundException {
new AmigoOutputStream(new FileOutputStream(fileName));
}
}