Skip to content
Java Developer Central
  • Home
  • About
  • Contact
  • Privacy Policy
Menu Close

java8

Home java8

Java Stream sorted operation

  • Post author:admin
  • Post published:August 28, 2023
  • Post category:stream
  • Post comments:0 Comments

Using Java Stream sorted operation on a stream will return a stream with the elements of the stream sorted according to their natural order

Continue ReadingJava Stream sorted operation

Java Stream Reduce

  • Post author:admin
  • Post published:January 2, 2023
  • Post category:stream
  • Post comments:1 Comment

We use the Java Stream’s reduce method to reduce a stream of values to a single result. There are three overloaded Stream#reduce operation.

Continue ReadingJava Stream Reduce

Java Stream toArray

  • Post author:admin
  • Post published:March 15, 2022
  • Post category:stream
  • Post comments:0 Comments

The Java stream toArray methods, which we learn in this post, allow us to collect/convert a stream into an array.

Continue ReadingJava Stream toArray

Functional Interfaces in Java – Functions

  • Post author:admin
  • Post published:June 6, 2021
  • Post category:java8
  • Post comments:0 Comments

In this post, we will learn about the functional interface in Java for functions present as part of the java.util.function namespace.

Continue ReadingFunctional Interfaces in Java – Functions

Java DoubleStream – A Complete Guide

  • Post author:admin
  • Post published:April 5, 2021
  • Post category:java8
  • Post comments:0 Comments

A Java DoubleStream is a sequence of double-valued elements that supports sequential and parallel aggregate operations.

Continue ReadingJava DoubleStream – A Complete Guide

Default Methods in Java Map

  • Post author:admin
  • Post published:March 22, 2021
  • Post category:java8
  • Post comments:0 Comments

Many JDK interfaces were enhanced with default methods in Java 8. In this post we will learn about the default methods in the Java Map interface.

Continue ReadingDefault Methods in Java Map

Six ways to convert a Java Stream to a List

  • Post author:admin
  • Post published:December 14, 2020
  • Post category:stream
  • Post comments:2 Comments

In this post, we will see six ways to convert a Java stream to a List. You can extend these if you want to convert a stream to a Set as well.

Continue ReadingSix ways to convert a Java Stream to a List

Java 8 LongStream – A Complete Guide

  • Post author:admin
  • Post published:December 8, 2020
  • Post category:java8
  • Post comments:0 Comments

The Java 8 LongStream is a sequence of primitive long-valued elements and is a long primitive specialization of Stream.

Continue ReadingJava 8 LongStream – A Complete Guide

Java 8 StringJoiner with examples

  • Post author:admin
  • Post published:November 23, 2020
  • Post category:java8
  • Post comments:0 Comments

Java 8 StringJoiner class can be used to build a sequence of characters that are separated by a configured delimiter, prefix and a suffix.

Continue ReadingJava 8 StringJoiner with examples

4 Ways to throw Checked Exceptions in Java Streams

  • Post author:admin
  • Post published:November 17, 2020
  • Post category:stream
  • Post comments:0 Comments

This post shows 4 ways to throw checked exceptions in Java streams i.e., having a lambda expression that can throw checked exception(s).

Continue Reading4 Ways to throw Checked Exceptions in Java Streams
  • 1
  • 2
  • 3
  • Go to the next page

Subscribe to Newsletter

Categories

  • apache-commons
  • classes and interfaces
  • collection
  • collections
  • collectors
  • comparator
  • design-pattern
  • exception
  • google-guava
  • java
  • java16
  • java17
  • java18
  • java8
    • intstream
    • stream
  • java9
  • jmh
  • nio
  • rxjava

Archives

  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018

Recent Posts

  • Java Stream sorted operation
  • Google Guava Converter
  • Google Guava MoreObjects
  • Apache Commons Lang Diffable
  • Google Guava Maps difference
  • Home
  • About
  • Contact
  • Privacy Policy
  • Sitemap

Follow

  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
Copyright © 2023 Java Developer Central
  • Home
  • About
  • Contact
  • Privacy Policy
Type your search