Simple java program examples