What does this program print?
Java
import java.util.ArrayList;
import java.util.List;
public class Main {
static boolean test(List<String> calls, String name, boolean result) {
calls.add(name);
return result;
}
public static void main(String[] args) {
List<String> calls = new ArrayList<>();
boolean ready = test(calls, "first", false)
&& test(calls, "second", true);
System.out.println(calls + " " + ready);
}
}