1
I am studying Jsoup library and I took the most basic example of the site and tried to build something simple, but I have this error, which does not allow me to execute the code:
Default constructor cannot Handle Exception type Ioexception thrown by implicit super constructor. Must define an Explicit constructor
What does this mistake mean and how to solve it? I’ve researched a lot but the answers are vague.
package estudandoJsoup;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
public class Parse {
Document doc = Jsoup.connect("http://example.com/").get();
String title = doc.title();
}