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

  4. 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 …

  5. java - How to install the JDK on Ubuntu Linux - Stack Overflow

    Feb 9, 2013 · I am trying to install the Java Development Kit (JDK) on Ubuntu Linux distribution, but I am unable to install it. What are the steps to install it on Ubuntu?

  6. 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:

  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. When and why would you use Java's Supplier and Consumer interfaces?

    As a non-Java programmer learning Java, I am reading about Supplier and Consumer interfaces at the moment. And I can't wrap my head around their usage and meaning. When and why you would use …

  9. hibernate - Upgrading from java8 to java17 getting javassist ...

    Apr 11, 2023 · Upgrading from java8 to java17 getting javassist enhancement failed error Asked 2 years, 10 months ago Modified 2 years, 10 months ago Viewed 1k times

  10. filter - Checking if a list is empty in java 8 - Stack Overflow

    Dec 23, 2015 · I am new to Java8. I have implemented lists and filters. I have done a null check in my code. I would appreciate some help with how to check if the list is not empty in the same code …