Skip to content
Snippets Groups Projects
Commit a7f91f17 authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

tulosta outputsreamilla

parent e8b1039b
No related branches found
No related tags found
No related merge requests found
package kerho;
import java.io.OutputStream;
import java.io.PrintStream;
/**
......@@ -45,6 +46,15 @@ public class Jasen {
out.println(" " + lisatietoja);
}
/**
* Tulostetaan henkilön tiedot
* @param os tietovirta johon tulostetaan
*/
public void tulosta(OutputStream os) {
tulosta(new PrintStream(os));
}
/**
* @param args ei käytössä
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment