newszine

Java 8 Convert Map to List using Streams API

7 years ago Lalit Bhagtani 0
Java 8 Convert Map to List :- In this tutorial, we will learn to convert map to list using Stream API. Problem Statement :- Given a map of Integer as a key and String as a Value convert it to the list, containing all the values of Map. Let’s see the implementation of above problem Read More

Java 8 Convert Primitive Array to List using Streams API

7 years ago Lalit Bhagtani 0
Java 8 Convert Primitive Array to List :- In this tutorial, we will learn to convert primitive array to list using Stream API. Converting an array of objects to a list is very easy and straightforward, you can use Arrays.asList() directly to convert it but this method does not work for converting primitive type arrays because Read More

Java 8 BiFunction Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 BiFunction interface. BiFunction Interface :- BiFunction ( java.util.function.BiFunction ) is a functional interface that has one abstract method and one default method declared in it. It represents an algorithm where two input parameter of same or different type is used to produce return value of same or Read More

Java 8 BinaryOperator Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 BinaryOperator interface. BinaryOperator Interface :- BinaryOperator ( java.util.function.BinaryOperator ) is a subinterface of the BiFunction interface, it has two static method along with all the abstract and default method inherited from the BiFunction interface. It represents an algorithm where two input parameter of same type is used to Read More

Java 8 UnaryOperator Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 UnaryOperator interface. UnaryOperator Interface :- UnaryOperator ( java.util.function.UnaryOperator ) is a subinterface of the Function interface, it has one static method along with all the abstract and default method inherited from the Function interface. It represents an algorithm where input parameter of one type is used to produce return value of Read More

Java 8 Function Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 Function interface. Function Interface :- Function ( java.util.function.Function ) is a functional interface that has one abstract method and two default method declared in it. It represents an algorithm where input parameter of one type is used to produce return value of same or another type. Abstract Read More

Java 8 Supplier Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 Supplier interface. Supplier Interface :- Supplier ( java.util.function.Supplier ) is a functional interface that has one abstract method declared in it. It represents an operation by which you can generate new values in the stream. Abstract method :-  T  get (  ) :- The abstract method get ( Read More

Java 8 LongSupplier Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 LongSupplier interface. LongSupplier Interface :- LongSupplier ( java.util.function.LongSupplier ) is a functional interface that has one abstract method declared in it. This interface is long producing primitive specialised form of Supplier interface.  Abstract method :-  long  getAsLong (  ) :- The abstract method getAsLong (  ) is a functional method. It does not Read More

Java 8 DoubleSupplier Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 DoubleSupplier interface. DoubleSupplier Interface :- DoubleSupplier ( java.util.function.DoubleSupplier ) is a functional interface that has one abstract method declared in it. This interface is double producing primitive specialised form of Supplier interface. Abstract method :-  double  getAsDouble (  ) :- The abstract method getAsDouble (  ) is a functional method. It does not Read More

Java 8 IntSupplier Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 IntSupplier interface. IntSupplier Interface :- IntSupplier ( java.util.function.IntSupplier ) is a functional interface that has one abstract method declared in it. This interface is int producing primitive specialised form of Supplier interface. Abstract method :-  int  getAsInt (  ) :- The abstract method getAsInt (  ) is a functional method. It does not accept any Read More