Browse Source

Add Visitenkarte

master
Sarah Pastors 3 years ago
parent
commit
8fa49e65d8
1 changed files with 27 additions and 0 deletions
  1. 27
    0
      src/Visitenkarte.java

+ 27
- 0
src/Visitenkarte.java View File

@@ -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 + "--------------------------------------";
}
}

Loading…
Cancel
Save