Sample java programs