About 11,200,000 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. 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 …

  4. How to use a Java 8 lambda to sort a Stream in reverse order?

    I'm using a Java lambda to sort a list. How can I sort it in a reverse way? I saw How to sort ArrayList<Long> in decreasing order?, but I want to use a Java 8 lambda. Here is my code (I …

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

  6. arraylist - Java 8 Streams - Compare two Lists' object values and add ...

    Jul 29, 2019 · public static List<SchoolObj> createSharedListViaStream(List<SchoolObj> listOne, List<SchoolObj> listTwo) { // We create a stream of elements from the first list. List<SchoolObj> …

  7. iterating and filtering two lists using java 8 - Stack Overflow

    Apr 7, 2015 · I want to iterate two lists and get new filtered list which will have values not present in second list. Can anyone help? I have two lists - one is list of strings, and the other is list of MyClass

  8. java - Distinct by property - Stack Overflow

    In Java 8, how can I filter a collection using the Stream API by checking the distinctness of a property of each object? For example, I have a list of Person objects and I want to remove people wit...

  9. How can I convert a Java 8 Stream to an Array? - Stack Overflow

    Apr 15, 2014 · What is the easiest/shortest way to convert a Java 8 Stream into an array?

  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: