Java Articles

ToLongFunction_Interface_Java8_Examples_FeaturedImage_Techndeck

ToDoubleFunction Interface in Java 8 with examples

ToDoubleFunction Interface is a part of the java.util.function package which is introduced in Java 8. It is an in-built Functional Interface. This function expect an argument as an input and produces a double-valued result. As it is a functional interface, it can be...
LongConsumer_Interface_Java8_Examples_FeaturedImage_Techndeck

LongConsumer Interface in Java 8 with examples

LongConsumer Interface is a part of the java.util.function package which is introduced in Java 8. It is an in-built Functional Interface. This function expect a single long-valued argument as input but produces no output. In this post, we are going to see several...
Convert_Stream_To_List_Java8_Featured_Image_Techndeck

Convert a Stream to a List in Java 8

In this tutorial, we will see "How to convert a Stream to a List in Java 8?" To achieve that, we are going to use Collectors.toList() operation available since Java 8. Example 1. With...
mapToInt_Streams_Java8_Examples_FeaturedImage_Techndeck

Stream mapToInt in Java 8 with example

In this tutorial, we will see "what is mapToInt() operation as part of streams introduced in Java 8 with example?" mapToInt() returns an IntStream consisting of the results of applying the given function to the elements of this stream. This is an intermediate...
close

Enjoy this blog? Please spread the word :)

Follow by Email
Twitter