mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 10:21:05 +07:00
9 lines
287 B
Java
9 lines
287 B
Java
// "Make 's' effectively final using stream API" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
String s = Arrays.stream(args).filter(arg -> arg.length() > 5).findFirst().orElse(null);
|
|
Runnable r = () -> System.out.println(s);
|
|
}
|
|
} |