Given:
List<String> longlist = List.of(“Hello”,”World”,”Beat”);
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter “e”?

List<String> longlist = List.of(“Hello”,”World”,”Beat”);
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter “e”?

Correct Answer: C