- Joined
- Feb 16, 2009
- Messages
- 658
- Reaction score
- 96
Hi guys, I was wondering why this method:
says: 'Missing Return Statement'
It clearly says 'return modes[x]' right .
PHP:
public DisplayMode findFirstCompatibleMode(DisplayMode modes[]){
DisplayMode goodModes[] = vc.getDisplayModes();
for(int x = 0; x < modes.length; x++){
for(int y = 0; y < goodModes.length; y++){
if(displayModesMatch(modes[x], goodModes[y])){
return modes[x];
}
}
}
}
says: 'Missing Return Statement'
It clearly says 'return modes[x]' right .
Code:
vc is my Graphics Device btw.