added Java example