How to convert a string to byte array in Kotlin with examples. We can use the toByteArray method to convert a string to byte array. Learn how to use the toByteArray method with examples.
Read3 ways to convert a byte array to string in Kotlin. This post will show you how to convert a byte array to string with UTF-8 encoding or a different encoding.
ReadDifferent Kotlin examples to split a string. Learn how to split string with single delimiter, multiple delimiters, ignoring character case, with limit and with a regular expression.
ReadKotlin program to compare two strings in different ways. We will learn how to use comparison operator, equals method and compareTo method to compare two strings in Kotlin.
ReadKotlin program to check if a string ends with another string or character. This program will show you how to use endsWith method in Kotlin with different examples.
ReadKotlin program to check if a string starts with a sub-string or character in different ways. We can use the startsWith method to check if a string starts with another string.
ReadDifferent ways in Kotlin to remove the first N characters from a string. We will learn how to remove the first N characters by using the drop method and removeRange method with example programs.
ReadHow to find the sum of two numbers using friend function in C++. Learn what is a friend function in C++ and how to use a friend function to find the sum.
Read3 different ways in C++ to find the volume of a cylinder. We will learn how to use user-input values to find the cylinder volume with three example programs.
ReadC++ program to insert element to an array at the start, at the end and at any given specific position. We will learn how to do these with different example programs.
Read