mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
12 lines
275 B
Java
12 lines
275 B
Java
// "Make 'x' effectively final using stream API" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
int x = 0;
|
|
for (String arg : args) {
|
|
x += arg.length();
|
|
}
|
|
Runnable r = () -> System.out.println(<caret>x);
|
|
}
|
|
} |