Posted: Sun Dec 12, 2010 11:24 am Post subject: Error Message ?
Hey! ive been following a online tut and the goal of it was to make a full screen game. Now to write this ive been using the program "Ready to Program" . But it says everything is right but on one line of code . . .
[syntax="(int x = 0<modes.length;x++){ "]
[/syntax]
it comes up as an error. i displayed the method and imports down below. Can you guys see what i need to fix ?
//Comapres DM passed into vc DM and see if they match
public DisplayMode findFirstCompatibleMode(DisplayMode modes[]){
DisplayMode goodModes[] = vc.DisplayMode();
for(int x = 0<modes.length;x++){
for(int y =o;y<goodModes.length;y++){
if(displayModdesMatch(modes[x], goodModes[y])){
return modes[x];
}
}
}
return null;
}
"]
[/syntax]
Sponsor Sponsor
jcollins1991
Posted: Sun Dec 12, 2010 11:29 am Post subject: Re: Error Message ?
code:
(int x = 0<modes.length;x++)
should be
code:
(int x = 0; x<modes.length;x++)
and
code:
for(int y =o;y<goodModes.length;y++)
should probably be
code:
for(int y =0;y<goodModes.length;y++)
(0 instead of o)
Lucman909
Posted: Sun Dec 12, 2010 11:35 am Post subject: Re: Error Message ?