Java String berkurang
List < String > a = new ArrayList < > ();
a.add("John");
a.add("Alex");
a.add("Vincent");
String complete = a.stream().reduce("", (x, y) - > x + " " + y);
System.out.println(complete);
int total = IntStream.range(0, 20).reduce(0, (x, y) - > x + y);
System.out.println(total);
Serhat Ture