There are a lot of useful new things in Java 8. E.g., I can iterate with a stream over a list of objects and then sum the values from a specific field of the Object
Object
Also, you can do like this.
List list = Arrays.asList("One", "Two", "Three"); String result = String.join(", ", list); System.out.println(result);