File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
AP Computer Science Gridworld Question?
Joined: Feb 25, 2012
Feb 25, 2012 09:53:33
Hi, if by chance anyone on here knows a bit about the AP Computer Science GridWorld case study, I have a question about the location class.
I imported the Location class, but I'm still getting a "symbol not found" error for Location.FULL_CIRCLE
setDirection(((int) Math.random((Location.FULL_CIRCLE / Location.HALF_RIGHT) * 45)))
Any help would be greatly appreciated!
Joined: Jul 21, 2011
Feb 25, 2012 10:49:21
Make sure that the Location class is on your classpath, ie that the compiler can see the class.
Is the Location class something you've been provided with your assignment, and if so where is it in relation to your other classes?
Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
I agree. Here's the link:
subject: AP Computer Science Gridworld Question?
making a method run a certain amount of times
How do I learn Java?
Anyone take the AP computer science course?
Which is best reference book for Java Introduction?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014