Simple programs so I can learn Java