Click Java Program Examples.pdf link to view the file.