Question: Given a method declared as public static List process ( List nums ) A programmer wants to use this method like this: / / INSERT
Given a method declared as
public static List processList nums
A programmer wants to use this method like this:
INSERT DECLARATIONS HERE
output processinput;
Which pairs of declarations could be placed at INSERT DECLARATIONS HERE to allow the code to compile?
ArrayList input null; ArrayList output null;
List input null; List output null;
List input null; List output null;
ArrayList input null; List output null;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
