import java.util.stream.Collectors;
import java.util.ArrayList;
import java.util.List;
public class Program {
public static void main(String[] args) {
List<String> lst = new ArrayList<>(List.of("python", "c", "c++", "c#", "java", "php", "nodejs", "ada", "go"));
List<String> threeLetter_words = lst.stream()
.filter(word -> word.length() == 2 || word.length() == 3)
.collect(Collectors.toList());
System.out.println(String.join(", ", threeLetter_words));
}
}
/*
run:
c++, c#, php, ada, go
*/