Java program example