Yes, to get the links from all the URLs recursively, you can define a recursive function that calls itself on every link found. Here's an example of how you can modify the code to achieve this:
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class LinkExtractor {
    public static void main(String[] args) throws IOException {
        String url = "https://example.com/";
        recursiveLinkExtract(url);
    }

    private static void recursiveLinkExtract(String url) throws IOException {
        Document document = Jsoup.connect(url).get();
        Elements links = document.select("a[href]");

        for (Element link : links) {
            String linkHref = link.attr("href");
            System.out.println(linkHref);

            if (linkHref.startsWith("http")) { // Check if the link is an absolute URL
                recursiveLinkExtract(linkHref);
            } else { // Otherwise, construct an absolute URL using the base URL
                String absoluteUrl = new URL(new URL(url), linkHref).toString();
                recursiveLinkExtract(absoluteUrl);
            }
        }
    }
}

This modified code will recursively extract all links found on the website, and follow each link to extract links on those pages as well, and so on. Note that you may want to include some error handling to deal with invalid URLs or other issues that may arise.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence