mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
15 lines
307 B
Java
15 lines
307 B
Java
// "Replace Stream API chain with loop" "true-preview"
|
|
|
|
import java.util.ArrayList;
|
|
|
|
public class Test extends ArrayList<String> {
|
|
void test() {
|
|
new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
System.out.println(stream().mapToInt(String::length).s<caret>um());
|
|
}
|
|
};
|
|
}
|
|
}
|