import java.awt.*; public class Bullet { // instance variables - replace the example below with your own private int x,y; /** * Constructor for objects of class bulliet */ public Bullet(int x0, int y0) { x = x0; y = y0; } public int getY(){ return y; } public void draw(Graphics g) { // put your code here g.setColor(Color.RED); g.fillRect(x,y,3,8); y -= 4; } }