How to make object shoot in Processing

of course in a real game you can shoot multiple bullets from different positions that fly on the same time. So a few bullets are visible and animated at the same time

see Someone please help solving a problem : shooting bullets - #4 by Chrisir