// Java: String shortest = items.stream() .min(Comparator.comparing(item -> item.length())) .get();
// Kotlin: val shortest = items.minBy { it.length }