mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 08:20:55 +07:00
9 lines
254 B
Java
9 lines
254 B
Java
// "Extract variable 'i' to 'mapToInt' operation" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void test2(List<String> list) {
|
|
list.stream().mapToInt(String::length).forEach(i -> System.out.println(i));
|
|
}
|
|
} |