[java] dumb question
so, i'm trying to initialize a variable to only be able to be assigned, 0, 90, 180, 270, or 360. the line of code
if (0 < direction < 90) {
System.out.println ("Could not recognize direction. Heading initialized to 0");
}
i keep getting a "operator < cannot be applied to boolean,int.
any help would be appreciated, just doing a simple lab assignment for a cs class and java syntax is smacking me around
|