javascript

2 different JavaScript program to calculate age from date of birth

JavaScript program to calculate age from date of birth of a person. We will learn two different ways to calculate the age from birth date.

Read
java

Java stream mapToInt explanation with examples

Java stream mapToInt is used to get one integer stream from a different stream by applying a functing to all members of a stream. This post will show you how to use mapToInt with example.

Read
java

Difference between findAny and findFirst of Java Stream API

findAny and findFirst methods are defined in Java Stream API. This post will show you the difference between these methods with example.

Read
java

3 different ways to copy a string in Java

Learn how to copy a string in Java in three different ways. We will learn how to copy a string using direct assignment, using StringBuffer and using String.copyValueOf.

Read
dart

Dart string contains method explanation with example

Dart string contains method is used to check if a pattern is in a string or not. In this post, we will learn how to use contains() with examples.

Read
dart

How to reverse a list in dart

Learn how to reverse a list in dart. We will learn how to reverse a list in normal way and inplace reversion.

Read
C++

C++ proram to find the difference between two time periods using Structure

C++ program to find the time difference between two user given time periods using structures. The structures will hold the hour, minute and second values of both time periods.

Read
C++

C++ STL std::replace() function explanation with example

C++ program to use std::replace() with example. replace is defined in algorithm header of C++. It can be used to replace one value with a new value in a given range.

Read
C++

How to use std::move() in C++ to move numbers from one array to another

C++ program to move numbers from one array to another using std::move(). This program will show you how to use std::move() with example.

Read
C++

Binary Search in C++ STL (Standard template library)

C++ program to use binary search using binary_search function defined in STL or standard template library. This program will show how to use STL binary search to search an element in an array.

Read