base java program