import java.util.concurrent.CompletableFuture;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
CompletableFuture<?> f = CompletableFuture.supplyAsync(() -> false);
f.cancel(true);
f.join();
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: