Introduction to Java JShell or Java Shell tool

Java JShell was introduced in Java 9. It is an interactive tool for learning Java. It is a Read-Evaluate-Print Loop (REPL) that can be used to evaluate different Java expressions on the terminal.

Read

Dart while loop explanation with example

Loops are used to run a piece of code for a finite amount of time. For loop and while loop are two mostly used loops. The syntax and idea of both of these loops are the same in almost all programming languages. while loop checks one condition and executes a block of code. It always checks the condition before starting the execution. It will keep running until the condition is true.

Read

C++ program to find all perfect numbers in a given range

In this C++ tutorial, we will learn how to find all perfect numbers in a given range. This post will show you how to write a C++ program that takes the range as input and prints all perfect numbers in that range.

Read

How to parse JSON from local file in React Native

This tutorial will show you how to parse JSON from a local JSON file in react native with an example project. We can use the same method to parse JSON from a server response.

Read

Example of Python strip method

Python strip() method is used for removing leading and trailing characters. It doesn't modify the original string. Actually it can't modify the string because it is immutable. It creates one copy of the string by removing the leading/trailing characters and returns that string.

Read

Example of Python casefold method

casefold() method is used to convert all characters in a string to lowercase. It doesn't take any parameter. You can directly call this method to a string. It returns the new lowercase character string.

Read

MongoDB find documents within two dates

We have one collection with the below documents :.

Read

JavaScript find the sum of all odd numbers smaller than a number

Find the sum of all odd numbers smaller than a number in JavaScript in three different ways. We will use a for loop, while loop and loops with jumping the numbers to find the required sum.

Read

5 Different ways in Dart to iterate through a Map

Dart map is used to hold key-value pairs. In this post, we will learn 5 different ways to iterate through a dart map with examples. Using loops and entries, we can iterate through a dart map key-value pairs.

Read

if-else condition in Dart explanation with example

if-else statements are control flow statements. Using these statements, you can control the flow of a dart program.

Read