Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Error Message ?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Lucman909




PostPosted: 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]
Sponsor
Sponsor
Sponsor
sponsor
jcollins1991




PostPosted: 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




PostPosted: Sun Dec 12, 2010 11:35 am   Post subject: Re: Error Message ?

thanks man! Smile
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: