Kotlin program to check if a string is numeric

In this post, I will show you how to check if a string is numeric or not in Kotlin. For example, "1.2" is a numeric string but 1.2x is not. We will learn different ways to solve this problem.

Read

Kotlin program to remove all whitespaces from a string

Kotlin doesn't provide any string method to remove all whitespaces from a string. The only way to do it by replacing all blank spaces with an empty string.

Read

Kotlin inheritance explanation with example

Inheritance is a commonly used concept in object-oriented programming. It is the way to inherit functions and properties from a base class to a child class.

Read

Kotlin program to filter one list using another list

In this tutorial, I will show you how to filter one list using another list. For example, if the first list contains 1,2,3,4,5 and if the second list contains 2,4,6,7 and if we filter the first list based on the second list, it will give 2,4.

Read

How to create one picker component in React Native

Picker provides a dropdown list of items to pick from. On Android, it can be a dialog or dropdown. In this post, I will quickly show you how to use Picker in react native with one example.

Read

Kotlin program to convert one string to character array

In this kotlin tutorial, we will learn how to convert one string to a character array. Kotlin provides one method called toCharArray that can be used to convert one string to character array.

Read

React Native modal explanation with example

In this react native tutorial, I will show you how to create one modal. A modal is used to present one content above a view. We can use modal to show one view like a popup.

Read

How to reverse all words of a string in Python

This is a python tutorial to reverse all words of a string. We will write one python program that will take one string as input and print out the new string by reversing all words in it.

Read

Python get quotient and remainder using divmod() method

Python divmod method can be used to find out the quotient and remainder at one go. It takes two numbers as arguments and returns the quotient and remainder as pair. For example, if the numbers are a and b, if both are integers, it will return results as a/b and a%b. For floating-point numbers, it will return math.floor(a/b)

Read

Split a string with multiple delimiters in Python

Python built in split method of the re module can be used to split one string based on a regular expression. Regular expression can be used to split one string using multiple delimiters. In this quick tutorial, I will show you how to split a string with multiple delimiters in Python.

Read