This seems like a simple problem but for some reason it has me flustered, in this code I have the actor Bullet1 being shot out of a gun in a short burst of 3 but as I compile this I get an error saying "<=" is a bad operator type why is this, I defined the Bullet1 and once "l" is pressed it should fire only if there are <= 3 Bullets in the world. Have I misplaced the <= 3 and it should go somewhere else in the code? Thanks for your time
//declare bullet1 to be bullet.class Actor Bullet1; Bullet1 = getOneObjectAtOffset(0, 0, Bullet1.class); //if the key is pressed execute the rest of the code if("l".equals(Greenfoot.getKey())) { if ((Bullet1.class) <= 3) //fire only if there are 3 or less //Bullet1 in the world fire(); //fire the bullet }