Jemand
public text v1 · immutable public void loescheSelektierteVorstellung() {
Vorstellung loeschVorstellung = _showsButtons[_selected].getVorstellung();
for (int i = 0; i < (_vorstellungen.length - 1); i++){
if (_vorstellungen[i].equals(loeschVorstellung)){
for (int h = i; h < (_vorstellungen.length - 1); h++){
if (_vorstellungen.length - 1 == h) {
_vorstellungen[h-1] = _vorstellungen[h];
_vorstellungen[h] = null;
} else {
_vorstellungen[h] = _vorstellungen[h+1];
}
}
}
}
}