Some easy Java programs