java - void type not allowed here in servlet -
java - void type not allowed here in servlet - this java class : public string year, title,detail; public league(string year,string title,string detail) { this.year=year; this.title=title; this.detail=detail; } public void gettitle() { system.out.println(""+year+""+title+""+detail+""); } this servlet: protected void doget(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { processrequest(request, response); //creats set of league leaguelist=new linkedlist(); leaguelist.add(new league("2003","spring","soccer league(spring`03)")); leaguelist.add(new league("2003","summer","summer soccer fest")); leaguelist.add(new league("2003","fall","fall soccer league")); leaguelist.add(new league("2004","spring","summer soccer fest...