All pastes #610408 Raw Edit

Zeug

public text v1 · immutable
·published 2007-07-09 13:30 UTC
rendered paste body
private Vorstellung[] gibVorstellungenAnDatum(Kinosaal kino, Datum date, Vorstellung[] vorstellungen)
	{
		
		Film[] noFilm = {new Film("Keine Vorstellung", 100, FSK.FSK0, false)};
		Vorstellung[] tagesVorstellung = { new Vorstellung (kino, noFilm[0], new Uhrzeit(15, 0), new Uhrzeit(17,0), date, 0) };
		int counter = 0;
		
		for (int i = 0; i < (vorstellungen.length - 1); i++)
		{
			if (date == vorstellungen[i].gibDatum() && (kino == vorstellungen[i].gibKinosaal())) {
				tagesVorstellung[counter] = vorstellungen[i];
				counter++;
			}
		}
		
		return tagesVorstellung;
	}