By Yolande Poirier-Oracle on Jun 08, 2016
This course is free.Register Today!
This session will show how lambdas and Streams can be used to solve a toy problem based on Scrabble. We are going to solve this problem with the Scrabble dictionary, the list of the words used by Shakespeare, and the Stream API. The three main steps shown will be the mapping, filtering and reduction. The mapping step converts a stream of a given type into a stream of another type.Then the filtering step is used to sort out the words not allowed by the Scrabble dictionary. Finally, the reduction can be as simple as computing a max over a given stream, but can also be used to compute more complex structures. We will use these tools to extract the three best words Shakespeare could have played.
The Java Hub is open to anyone from 10:00 to 19:30, Tuesday to Thursday, in the Exhibition Hall at the Transamerica Expo Center. The Java Hub is brought to you by Oracle Technology Network.
Insider News from the Java Team at Oracle!