Question: Reimplement Exercise 17.11 using parallel streams. Use the Date/Time API timing techniques to compare the time required for the sequential and parallel versions of the
Reimplement Exercise 17.11 using parallel streams. Use the Date/Time API timing techniques to compare the time required for the sequential and parallel versions of the program.
Exercise 17.11
Demonstrated how to get information about files and directories on disk. In addition, you used a DirectoryStream to display the contents of a directory. Interface DirectoryStream now contains default method entries, which returns a Stream. Use the techniques, DirectoryStream method entries, lambdas and streams to summarize the types of files in a specified directory.
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
To solve the exercise we first need to understand whats being asked Exercise 1711 wants us to use the DirectoryStream method entries lambdas and strea... View full answer
Get step-by-step solutions from verified subject matter experts
