This site requires JavaScript, please enable it in your browser!
Greenfoot back
Jsmoove
Jsmoove wrote ...

2015/2/13

public int getTimer

Jsmoove Jsmoove

2015/2/13

#
Hi I need help with this project in computer sci., but i keep getting an error thats says "cannot find symbol - method getTimer()." The error happens here: public int getTimer() { CarWorld w = (CarWorld)getWorld(); return w.getTimer(); <----- Here
danpost danpost

2015/2/13

#
It is saying your CarWorld class does not have a 'getTimer' method. Without more information/code, it would be difficult to say what you need to do. Also, please use the 'code' link below the reply box for inserting code into your posts.
Jsmoove Jsmoove

2015/2/13

#
danpost danpost

2015/2/13

#
The image you attempted to provide shows a 'getTimer' method in the Car class. But, you are trying to call a 'getTimer' method in the CarWorld class.
You need to login to post a reply.