small java program