How many tasks are finished

Report a typo

Write the method that counts how many Future objects in the list are finished.

Write a program in Java 17
import java.util.*;
import java.util.concurrent.*;


class FutureUtils {

public static int howManyIsDone(List<Future> items) {
// write your code here
}

}
___

Create a free account to access the full topic