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 - How To Find First Repeated And Non-Repeated Character In A ...

    Sep 16, 2016 · How To Find First Repeated And Non-Repeated Character In A String Using java8 Asked 9 years, 4 months ago Modified 12 months ago Viewed 29k times

  6. What's the difference between map() and flatMap() methods in Java 8?

    Both map and flatMap can be applied to a Stream<T> and they both return a Stream<R>. The difference is that the map operation produces one output value for each input value, whereas the flatMap …

  7. How to find second highest salary in below array list using Java8 ...

    How to find second highest salary in below array list using Java8 streams [closed] Asked 5 years, 2 months ago Modified 1 year, 11 months ago Viewed 101k times

  8. 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

  9. High memory usage in Java 21 compared to Java 8 - Stack Overflow

    Sep 24, 2024 · We recently upgraded from Java 8 to Java 21 and noticed a significant increase in memory consumption in our Java applications. Our applications are deployed in containers based on …

  10. 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?