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()
This section is not available anymore. Please use the main Exam Page.1z0-809 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
asdfjhfgjuaDCV
9 months, 3 weeks agosteefaand
10 months, 3 weeks agor1muka5
1 year, 9 months agoYasinGaber
2 years, 10 months agoYasinGaber
2 years, 10 months agoSvetleto13
3 years, 8 months agoAVB22
3 years, 1 month ago