/**
* Return how many members joined in the given month.
* @param month The month we are interested in.
* @return How many members joined in the given month.
*/
public int joinedInMonth(int month)
{
if(month <1 || month > 12){
System.out.println("Error");
}else{
int count =0;
for(Membership x:clubMembership){
if(x.getMonth() == month)
count++;
}
return count;
}
}
I keep getting a missing statement error although I have included am return statement
Admin Edit: Please use code tags when posting your code. Code tags are used like so =>
Thanks,
PsychoCoder

New Topic/Question
Reply
MultiQuote











|