Basic Core Java programming examples