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.
ReadKotlin 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.
ReadInheritance 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.
ReadIn 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.
ReadPicker 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.
ReadIn 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.
ReadIn 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.
ReadThis 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.
ReadPython 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)
ReadPython 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