Skip to content
TechMam
  • Node.Js
  • JavaScript
  • jQuery
  • Java
Categories Java 8

How To Throw Exception In Java 8 Lambda Function – Detailed Guide

The Java 8 Lambda function helps invoke single-method class instances more compactly. You can use Lambda functions to invoke a functional interface and throw an exception inside the functional interface …

Read more

Categories Java 8

How To Find And Remove An Element From A List In Java 8

The Java List interface represents the ordered Collection allowing duplicate elements. The list provides various methods to add, remove or search for an element. You can remove an element efficiently …

Read more

Categories Java 8 Stream

Difference Between FindFirst() And FindAny() In Java 8 – Detailed Guide

The Java 8 Stream supports various aggregate operations on a stream of elements. You can use Stream’s .findFirst() and .findAny()methods to get an element from the stream of elements with …

Read more

Categories Java 8 Stream

How To Find The First Element Of An List Matching A Condition In Java 8 – Detailed Guide

The Java 8 Stream is a sequence of elements which supports sequential and parallel aggregate operations.You can use the stream().filter(predicateFn).findFirst() method to find the first element based on the result …

Read more

Categories Java 8 Stream

How to get Java 8 Distinct value by property

The Java 8 Stream supports various functionalities to handle aggregate operations in a sequence of elements. You can use Java 8 Stream’s distinct function.stream().distinct() to aggregate distinct values in a …

Read more

Categories Java 8 Date

How To Convert a Java8 LocalDate to OffsetDateTime

The Java 8 LocalDate represents a date value without a time zone in the ISO-8601 calendar system, whereas the Java 8 OffsetDateTime is a date-time representation with an offset value …

Read more

Categories Java 8 Stream

How To Convert Java 8 Stream To An Array

The Java 8 Stream is a sequence of elements that supports sequential and parallel aggregate operations. You can use the .stream().toArray() function to convert a Java 8 stream to an …

Read more

Categories Java 8 Stream

How to sort a Java8 stream in reverse order? – Detailed Guide

The Java 8 Stream is a sequence of elements supporting sequential and parallel operations composed into a stream pipeline. You can use stream().sorted((a, b) -> (b – a)) function to …

Read more

Categories Java Date

How to Convert Java String to sql.Timestamp – Detailed Guide

The java.sql.Timestamp is a wrapper around the java.util.Date to map the SQL Timestamp values. You can use Timestamp.valueOf(LocalDateTime.parse(“01022022 12:23:23”, DateTimeFormatter.ofPattern(“ddMMyyyy HH:mm:ss”))) function to convert Java String to sql.Timestamp object. In …

Read more

Categories Java 8 Stream

How to convert a List of Lists into a List in Java 8

The Java List is an ordered collection that helps to insert, delete or search elements of any type(List) based on index positions. You can use Java 8 Stream .flatMap() method …

Read more

Older posts
Page1 Page2 … Page6 Next →

Menu

  • Privacy Policy
2023 ©
TECHMAM