Sample java program