mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
8 lines
293 B
Java
8 lines
293 B
Java
// "Inline 'map()' body into the next 'forEach()' call" "true-preview"
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public static void test(List<CharSequence> list) {
|
|
(list.stream().map(cs -> cs.subSequence(1, 5))).forEach(charSequence -> System.out.println(charSequence.length()));
|
|
}
|
|
} |