mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
14 lines
369 B
Java
14 lines
369 B
Java
// "Replace Stream API chain with loop" "true-preview"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Main {
|
|
private static void test(List<String> test) {
|
|
System.out.println("x"+test.stream().c<caret>ollect(Collectors.joining())+"y");
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(test(Arrays.asList("a", "b", "c")));
|
|
}
|
|
} |