I'm studying the 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 can not handle exception type IOException thrown by implicit super constructor. Must define an explicit constructor
What does this error mean and how do you solve it? I already 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();
}