Java Practices Sample Program