perhaps i spoke too soon. when i tried to compile the code, the part that i had thought was correct is giving me a missing return statement error.
Quote:
private String getDirection()
{
if (degrees == 0) {
return "north";
}
if (degrees == 90) {
return "east";
}
if (degrees == 180) {
return "south";
}
if (degrees == 270) {
return "west";
}
}
|
i checked everything, and all the return statements are there. another syntax problem? thanks to anyone who feels like checking it out