import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
public class HTMLParser {
public Document parse(String url) throws IOException {
Document document = Jsoup.connect(url).get();
return document;
}
}
public class Main {
public static void main(String[] args) {
HTMLParser parser = new HTMLParser();
try {
Document document = parser.parse("https://example.com");
} catch (IOException e) {
e.printStackTrace();
}
}
}