Example - Collect to Map

I. Task
Find terms with most categories in Lexicon

II. Notes

  • Java 7 - mutation
  • Java 8 -
    • collect (joining(", "))
    • collect (stoList())

III. Java Codes

IV. Results

----- Program Starts ... 
----- GetInflVarList8( ): -----
--- input file: ../data/inflVars.data
--- Total lines: 1690181
===== Ex5_CollectToMap.Test (1) =====
== Most Categories (7): 
last: [adj, adv, det, noun, verb]
round: [adj, adv, noun, prep, verb]
up: [adj, adv, noun, prep, verb]

-- Time (Java 7 - CollectToMap): 4.003448173
== Most Categories (8): 
last: [adj, adv, det, noun, verb]
round: [adj, adv, noun, prep, verb]
up: [adj, adv, noun, prep, verb]
-- Time (Java 8 - CollectToMap): 5.451465971
== Most Categories (8): 
last: [adj, adv, det, noun, verb]
round: [adj, adv, noun, prep, verb]
up: [adj, adv, noun, prep, verb]
-- Time (Java 8 - CollectToMap, parallel): 3.094619732
----- Program Ends ...