Rewrite this lambda that takes an int n using a constructor reference: n -> new ArrayList (n).

Question:

Rewrite this lambda that takes an int n using a constructor reference: n -> new ArrayList<>(n).

A. ArrayList::new

B. ArrayList::new()

C. ArrayList::new(n)

D. ArrayList::new[n]

E. None of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: