Question 76
Given:
var fruits = List.of("apple", "orange", "banana", "lemon");
You want to examine the first element that contains the character n. Which statement will accomplish this?
Question 77
Given:
What is the result?
Question 78
A bookstore's sales are represented by a list of Sale objects populated with the name of the customer and the books they purchased.
public class Sale {
private String customer;
private List<Book> items;
// constructor, setters and getters not shown
}
public class Book {
private String name;
private double price;
// constructor, setters and getters not shown
}
Given a list of Sale objects, tList, which code fragment creates a list of total sales for each customer in ascending order?
Question 79
Given the code fragment:
What is the result?
Question 80
Given:
and
and
What is the result?


