Javatpoint Logo
Javatpoint Logo

Jsoup Example: print title of an url

Let's see the jsoup example to print title of an url e.g. www.javatpoint.com. By the help of Jsoup.connect() method, we will connect with the URL. The get() method returns the reference of Document object. The document class provides title() method that returns the title of the document.

Output:

title is: Javatpoint - A Solution of all Technology




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA