Closed calebperkins closed 10 years ago
The change in the Guava section is certainly true for Java 8, but not true for any other Java version. Maybe we can include the new syntax in a comment?
The other change to the stream interface is obviously correct.
The diamond syntax was introduced in Java 7, so it's been around for a couple years.
I think it's important to use that in Guava example because it more accurately shows the difference in verbosity between the library and standard Java.
My mistake. This looks great then.
Use the diamond syntax in the Guava section.
Corrected the Java streaming example. The stream needs to be transformed into a List before it can be assigned to List. Also, use
standard Java array list initialization instead of the Guava factory
method.