Java Sample Program (6)