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"?
Given: String originalPath = "data\\projects\\a-project\\..\\..\\another-project"; Path path = Paths.get(originalPath); System.out.print(path.normalize()); What is the result?
Given: var data = new ArrayList<>(); data.add("Peter"); data.add(30); data.add("Market Road"); data.set(1, 25); data.remove(2); data.set(3, 1000L); System.out.print(data); What is the output?
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?