Given the code fragment:
List<Integer> nums = Arrays.asList (10, 20, 8):
System.out.println (
//line n1
);
Which code fragment must be inserted at line n1 to enable the code to print the maximum number in the
nums list?
A.
nums.stream().max(Comparator.comparing(a -> a)).get()
B.
nums.stream().max(Integer : : max).get()
C.
nums.stream().max()
D.
nums.stream().map(a -> a).max()
A
A
A
A
Only A and B compile, still, just A is returning the max value.