mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-28 04:31:56 +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;
|
||
|
}
|
||
|
}
|