|
|
@@ -0,0 +1,27 @@ |
|
|
|
public class Visitenkarte { |
|
|
|
|
|
|
|
public static String name = "Pastors"; |
|
|
|
public static String vorname = "Sarah"; |
|
|
|
public static String beruf = "Student"; |
|
|
|
public static int alter = 21; |
|
|
|
public static String adresse = "90443 Nürnberg, Zufuhrstraße 8"; |
|
|
|
public static String telefonnummer = "0913123453"; |
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
ausgabe(); |
|
|
|
} |
|
|
|
|
|
|
|
public static void ausgabe() { |
|
|
|
System.out.println("--------------------------------------"); |
|
|
|
System.out.println(name + ", " + vorname); |
|
|
|
System.out.println(beruf + ", " + alter); |
|
|
|
System.out.println(adresse); |
|
|
|
System.out.println(telefonnummer); |
|
|
|
System.out.println("--------------------------------------"); |
|
|
|
} |
|
|
|
|
|
|
|
public String toString(){ |
|
|
|
return "--------------------------------------\n" + name + ", " + vorname + beruf + ", " + alter + adresse + telefonnummer + "--------------------------------------"; |
|
|
|
} |
|
|
|
} |