mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
14 lines
314 B
Java
14 lines
314 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) {
|
|
if (x < arg.length()) {
|
|
x = arg.length();
|
|
}
|
|
}
|
|
Runnable r = () -> System.out.println(<caret>x);
|
|
}
|
|
} |