Computer Science Canada Error Message ? |
Author: | Lucman909 [ 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 ? [syntax" // my imports import java.awt.*; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import java.lang.reflect.InvocationTargetException; . . . //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] |
Author: | jcollins1991 [ Sun Dec 12, 2010 11:29 am ] | ||||||||
Post subject: | Re: Error Message ? | ||||||||
should be
and
should probably be
(0 instead of o) |
Author: | Lucman909 [ Sun Dec 12, 2010 11:35 am ] |
Post subject: | Re: Error Message ? |
thanks man! ![]() |