Java basic demo