How to use addExact and subtractExact in Java 8

In this tutorial, we will learn two new methods added in Java 8 - addExact and subtractExact. These methods are used for addition and subtraction. I will show you how to use these methods with examples.

Read

Find name, size, type, and last modified date time of a file in ReactJS

Learn how to find the name, size, type, and modified date of a file in ReactJS. We will create one file selector component that will print the file properties on console if any file is selected.

Read

Difference between null and undefined in JavaScript

We often got confused with null and undefined in javascript. In this blog post, I will explain to you in simple words with an example. The difference is same for both Javascript and Typescript.

Read

Kotlin program to capitalize first letter/character of each words in a sentence

In this Kotlin programming tutorial, I will show you different ways to capitalize the first letter of each words in a string. We can't modify a string as it is immutable. We will create one new string from the original string. a sentence

Read

Kotlin program to Capitalize the first character or letter of a string

In this post, I will show you two different ways to capitalize the first character of a string. If the input string is "hello", it should print "Hello".

Read

Date constructors in JavaScript

new Date() creates one new Date object. It uses the current time at the time of initialization. For example :.

Read

Find the area of a triangle in C++

In this C++ program, we will learn how to find the area of a triangle if its sides are given. We will take the sides as input from the user. This example will show you how to read user inputs in C++ and how to do mathematical calculations.

Read

C++ program to print a random number

This tutorial is to write one Random number generator program in C++. Actually it is hard to create one random number generator without using any library. You need some start point that is always different and always creates one random value. For example, time. We can take the current time as the starting point and write one function that creates one random value using it.

Read

setbase operator in C++

setbase() is a manipulator function. This is used to change the basefield of a value. This function is defined in iomanip library. So, we need to include it to use setbase.

Read

endl in C++ and why we use it instead of newline

endl stands for end line in C++. You can use this operator to insert a new line at the end of a line. It puts one new line and flushes the stream. Let me show you one small example :.

Read