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

tulosta

parent d3a090c1
No related branches found
No related tags found
No related merge requests found
......@@ -9,13 +9,40 @@ import java.io.PrintStream;
*/
public class Jasen {
private int tunnusNro;
private String nimi = "";
private String hetu = "";
private String katuosoite = "";
private String postinumero = "";
private String postiosoite = "";
private String kotipuhelin = "";
private String tyopuhelin = "";
private String autopuhelin = "";
private int liittymisvuosi = 0;
private double jmaksu = 0;
private double maksu = 0;
private String lisatietoja = "";
/**
* Alustaa jäsenen tiedot tyhjiksi
*/
public Jasen() {
// ei edes tarviisi
}
/**
* Tulostetaan henkilön tiedot
* @param out tietovirta johon tulostetaan
*/
public void tulosta(PrintStream out) {
out.println("Aku");
out.println(String.format("%03d", tunnusNro) + " " + nimi + " " + hetu);
out.println(" " + katuosoite + " " + postinumero + " " + postiosoite);
out.println(" k: " + kotipuhelin + " t: " + tyopuhelin + " a: " + autopuhelin);
out.print(" Liittynyt " + liittymisvuosi + ".");
out.println(" Jäsenmaksu " + String.format("%4.2f", jmaksu) + " e." +
" Maksettu " + String.format("%4.2f", maksu) + " e.");
out.println(" " + lisatietoja);
}
......
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