Java1

Applet below.