sample code to help me to learn Java.