Guten Morgen und weil es beim ersten Mal so gut lief, wollte ich fragen, ob das eine effiziente Lösung ist?
Aufgabe:

Lösung:
	
	
	
	
	
		
	
			
			Aufgabe:

Lösung:
		Java:
	
	package Aufgabe10;
import java.io.*;
public class EinAusgabeStroeme {
    private long kopiere(InputStream inStream, OutputStream outStream, long anzahlBytes) throws IOException {
        byte[] buf = new byte[(int) anzahlBytes];
        int length;
        while ((length = inStream.read(buf)) != -1) {
            outStream.write(buf, 0, length);
        }
        return anzahlBytes;
    }
}