Old program I made when I was learning Java.