IrisJavaDiary

Monday, August 22, 2016

Sharing Link: Java 8 Lambda : Comparator example

https://www.mkyong.com/java8/java-8-lambda-comparator-example/


List<Integer> list = Stream.generate(() -> new Integer(0)).limit(10).collect(Collectors.toList());
Posted by Iris's Blog at 2:16 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Home
Subscribe to: Posts (Atom)

About Me

Iris's Blog
View my complete profile

Blog Archive

  • ▼  2022 (139)
    • ▼  August (12)
      • 326. Power of Three
      • 342. Power of Four
      • 1338. Reduce Array Size to The Half
      • 30. Substring with Concatenation of All Words
      • 1570. Dot Product of Two Sparse Vectors
      • 1220. Count Vowels Permutation
      • 484. Find Permutation
      • 327. Count of Range Sum
      • 460. LFU Cache
      • 715. Range Module
      • 1396. Design Underground System
      • 995. Minimum Number of K Consecutive Bit Flips
    • ►  July (41)
    • ►  June (67)
    • ►  May (19)
  • ►  2021 (3)
    • ►  August (1)
    • ►  March (2)
  • ►  2019 (75)
    • ►  March (5)
    • ►  February (8)
    • ►  January (62)
  • ►  2018 (194)
    • ►  December (81)
    • ►  November (35)
    • ►  October (36)
    • ►  September (15)
    • ►  August (12)
    • ►  July (10)
    • ►  June (5)
  • ►  2017 (347)
    • ►  December (1)
    • ►  November (4)
    • ►  October (12)
    • ►  September (37)
    • ►  August (39)
    • ►  July (31)
    • ►  June (43)
    • ►  May (15)
    • ►  April (78)
    • ►  March (83)
    • ►  February (4)
  • ►  2016 (1)
    • ►  August (1)
Simple theme. Powered by Blogger.