Some simle java programs