About 50 results
Open links in new tab
  1. macos - How to install Java 8 on Mac - Stack Overflow

    Now when java 9 is out, running "brew cask install java" installs java 9. "brew cask install java8" wasn't working for me until I ran "brew tap caskroom/versions".

  2. How to find maximum value from a stream of Integer values in Java 8

    Feb 25, 2025 · I have a list of Integer values named list, and from the list.stream() I want the maximum value. What is the simplest way? Do I need a comparator?

  3. java 8 - How to find the most frequent words in a string using java8 ...

    May 24, 2023 · I have a sample string in below input format. I'm trying to fetch the most repeated word along with it's occurance count as shown in the expected output format. How can we achieve this by …

  4. java 8 - Remove duplicate from List java8 - Stack Overflow

    Jul 31, 2017 · I have a class below, and wanted to remove duplicate person which contain same name, how to do by using Java8 Lambda, expected List contains p1, p3 from the below. Person: public …

  5. java 8 - Converting Array to List - Stack Overflow

    May 8, 2015 · In order to convert an Integer array to a list of integer I have tried the following approaches: Initialize a list (Integer type), iterate over the array and insert into the list By

  6. How to sort Employee object based on salary,name in ascending order ...

    Nov 29, 2020 · How to sort Employee object based on salary,name in ascending order from Map<String, Map<String, ArrayList<Employee>>>using Java8 streams API Asked 5 years, 2 months ago …

  7. How to add elements of a Java8 stream into an existing List

    Mar 31, 2014 · Javadoc of Collector shows how to collect elements of a stream into a new List. Is there a one-liner that adds the results into an existing ArrayList?

  8. java - Java8 : stream findFirst result - Stack Overflow

    Jun 9, 2017 · Java8 : stream findFirst result Asked 8 years, 8 months ago Modified 5 years, 11 months ago Viewed 110k times

  9. Remove duplicates from a list of objects based on property in Java 8

    Apr 16, 2015 · List<Employee> employee Can we remove duplicates from it based on id property of employee. I have seen posts removing duplicate strings form arraylist of string.

  10. Java 8 streams to find the duplicate elements - Stack Overflow

    Dec 28, 2014 · I am trying to list out duplicate elements in an integer list using Streams of JDK 8. For example: