All pastes #610505 Raw Edit

Jemand

public text v1 · immutable
·published 2007-07-09 14:36 UTC
rendered paste body
	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];						
					}
				}
			}
		}
		
	}