Write a java application that when provided a url and an email address, would generate a pdf with the contents of the url and send the generated pdf to the provided email address.
For example if I start the program, it would ask me for the url I want to generate pdf for and ask for the destination email address, then it would go ahead to generate the pdf and send the pdf to the provided email address.
An example of how the program could be execute would be thus:
java url2pdf.jar
Enter url: