Given: List<String> longlist = List.of("Hello","World","Beat"); List<String> shortlist =

By | January 7, 2023

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”?

Correct Answer: A