You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
650 B
29 lines
650 B
package com.ugsbo.auslandssemester;
|
|
|
|
public class Sitzung {
|
|
private String name;
|
|
private String vorname;
|
|
private int inMonaten;
|
|
private String destination;
|
|
|
|
|
|
// Konstruktor mit Übergabewerten
|
|
public Sitzung(String nachname, String vor, int monate, String ziel) {
|
|
this.name = nachname;
|
|
this.vorname = vor;
|
|
this.inMonaten = monate;
|
|
this.destination = ziel;
|
|
}
|
|
|
|
public String kategorieDestination() {
|
|
String kategorie = "Europa";
|
|
if (destination == "Australien" || destination == "Neuseeland" || destination == "Asien") {
|
|
kategorie = "Asien";
|
|
}
|
|
if (destination == "USA") {
|
|
kategorie = "USA";
|
|
}
|
|
return kategorie;
|
|
}
|
|
|
|
}
|