How is an executor termination recursion in java?
问题 This is a program that reads information site for previous format it uses recursion and executor.It works fine,my problem is to test whether the program is completed and success notification. public class NewClass { static String levels[] = { "div.col-md-9 li a", "div#sidebar ul li a" }; static String links = ""; private void getRecursive(String href, int level, final ExecutorService executor) { if (level > levels.length - 1) { return; } Document doc; try { doc = Jsoup.connect(href).get();