replaceAll is a dart string method that replaces part of a string defined by a pattern with a given value. It creates the new string and returns it.
ReadOur problem is to get the substring after the last occurrence of a special character in a string in Kotlin. For example, if our string is https://www.codevscolor.com, and if we need the substring after the last occurrence of '/', it should return www.codevscolor.com.
ReadIn this tutorial, we will learn how to check if an object is empty or not in Javascript. This is one of the important things to learn if you are developing any javascript application. You can't be sure that any object you are receiving either from an API or from a function will be non-empty always. So, instead of breaking your code, you should always check if an object is empty or not. This is a good coding practice and we should follow it on any programming language, not only in Javascript.
ReadIn this Java programming tutorial, we will learn how to subtract one matrix from another matrix. The program will ask the user to enter values for both of the matrices and it will calculate the subtraction result. Finally, the program will print out the result matrix.
ReadIn this C++ tutorial, we will learn how to read the details of students and how to print it using Class. We will use one class to hold the name and marks of each student and two member functions to read, print these details.
ReadIn this C++ tutorial, we will learn how to print the ASCII values of all characters of a string. Our program will take one string as an input from the user and print out the ASCII values of all characters.
ReadIn this C++ tutorial, we will learn how to print values at odd and even indices of a user-given array. This program will use one integer array. It will read all inputs from the user one by one and it will print all odd and even index values one by one.
ReadIn this example program, we will learn how to add numbers to an array in C programming language.What is an Array ? An array is a collection of items of same type. Arrays can be of one dimensional or multi dimensional. We will write one different post on 'multidimension array' . In this example, we are going to use single dimensional array. You can think it as like a list.
ReadWe have different ways to find the square of a number in python. In this post, I will show you different ways to do that with examples.
ReadPython list is used to hold same or different elements. All list elements are placed comma separated inside a square bracket []. You can access the list items and read/modify/delete them using index. The index starts from 0, i.e. 0 is the index of the first element, 1 is for the second element etc.
Read