I've had this problem before in the past and never really figured it out (just re-worked everything to avoid it). In this simple little method,
public int noteOn()
int onEvent = new int;
for(int i=0;i < Margin;i++)
onEvent = Colours.get(margin).intValue();
onEvent = Pitch;
onEvent = Velocity;
I'm getting an error of "missing return statement". I don't really understand why -- I suppose it's that there might be a situation in which the return is unreachable...
But I want to return multiple "onEvents". Is there an easy way around the "missing return" problem?