Implement the countFinishedFutures
which takes in a List
of Future
objects
and counts how many of the objects completed.
import java.util.List;
import java.util.concurrent.Future;
public class Main {
public static int countFinishedFutures(List<Future> futures) {
// your code here
}
}