// Java: List<String> filtered = items.stream() .filter( item -> item.startsWith("o") ) .collect(Collectors.toList());
// Kotlin: val filtered = items.filter { item.startsWith('o') }