File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes AP Computer Science Gridworld Question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "AP Computer Science Gridworld Question?" Watch "AP Computer Science Gridworld Question?" New topic

AP Computer Science Gridworld Question?

Bear Kim

Joined: Feb 25, 2012
Posts: 9
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!
Tina Smith
Ranch Hand

Joined: Jul 21, 2011
Posts: 208

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?
It's not a secret anymore!