Java Quiz
10 questions · no time limit
0:00
COLLECTIONS AND STRINGS
Question 1 of 10
No time limit
Current
Answered
Flagged
Not seen
PASSAGE
List<String> words = List.of("pear", "apple", "pear", "kiwi");
Set<String> unique = new LinkedHashSet<>(words);
String result = "";
for (String word : unique) {
result += word.charAt(0);
}
System.out.print(result);
What does the code print?
YOUR PROGRESS
10
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F
Answers save as you go · flagged questions come back at the end