examples for learning java stage