Core Java example