mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
9 lines
258 B
Java
9 lines
258 B
Java
// "Make 'x' effectively final using stream API" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
int x = Arrays.stream(args).mapToInt(String::length).sum();
|
|
Runnable r = () -> System.out.println(x);
|
|
}
|
|
} |