java demo 3