kan simpelthen ikke se fejlen
Jeg får en fejl ved:http://imageshack.us/f/17/screenshot20120117at229.png/
Her er hele min kode i denne klasse:
import java.util.*;
/**
* Mads Kristensen
* Studienr: 20117393
*/
public class Cinema
{
private String cinemaName;
private ArrayList<CinemaShow> listofcinemaShows = new ArrayList<CinemaShow>();
public String cinemaName()
{
this.cinemaName = cinemaName;
}
public void add(CinemaShow cs) {
listofcinemaShows.add(cs);
}
public void remove (CinemaShow cs) {
listofcinemaShows.remove(cs);
}
public CinemaShow mostCrowded() {
res CinemaShow = listofcinemaShows(0);
for(int i = 1; i < listofcinemaShow.size(); i++); {
if (res.getSpectators < listofspectators.get(i).getspectators()); {
res = listofcinemaShows.get(i);
}
}
return res;
}
}