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