mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-12-02 22:51:57 +01:00
15 lines
265 B
Java
15 lines
265 B
Java
|
package com.doerzbach;
|
||
|
|
||
|
public enum Geschlecht {
|
||
|
maennlich("Herr"),weiblich("Frau");
|
||
|
private final String anrede;
|
||
|
Geschlecht(String anrede) {
|
||
|
this.anrede=anrede;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString() {
|
||
|
return anrede;
|
||
|
}
|
||
|
}
|