View Single Post
Old 09-14-2004, 08:39 AM   #7 (permalink)
bacon_masta
Psycho
 
bacon_masta's Avatar
 
Location: i live in the state of denial
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
bacon_masta is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54