Recreate this applet.
Declare an instance of the Image class before init:
Image img;
Load the image in the init method:
img=getImage(getDocumentBase(),"arrow.jpg");
Call drawImage in the paint method:
offG.drawImage(img, 10, y[curr], this);
HINT: y[curr] refers to an array of int values. Consider how such an array could make relocating the arrow nice and easy.