Simple Java programs for beginners like me