Java: Use streams in the context of lambdas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex1984
    New Member
    • Oct 2015
    • 8

    Java: Use streams in the context of lambdas

    I have a program that I need to transform to use lambdas. I can't figure which methods is better to switch. Can somebody give an advice? I had to attach text file because it's way to much code to post and this site has limits. Thank you!!!
    Attached Files
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    You can convert every for-loop into a lambda.
    Especially in your program where you ...
    • loop through words and definitions and writes them to file.
    • loop through the data and find count for each key
    • count number of records before insert point.
    • create an array of 100 random numbers
    • ...

    Comment

    Working...