Posts by Devsheet

Read all articles posted by Devsheet programmers and content writers.

Native Video Ad Sample xml file

This XML file provides an example of how a native video ad can be created and encoded in XML. It includes the necessary parameters and elements needed to successfully encode a native video ad, allowing developers and advertisers to quickly and effectively create their own native video ad.

Use Ternary Operator in Kotlin

Ternary operators in any programming language are used to write conditional statements in one line. In this post, we are going to explain how you can use if else condition in one line using Kotlin.

Methods to convert a String to Long in Kotlin

In this post, we are going to learn different methods that can be used to convert a String value to a Long value in Kotlin.

String to Int conversion in Kotlin

If you are using Strings in Kotlin and want to convert it to an Int type value then you can use the methods explained in this post. We will be using toInt(), toIntOrNull() and parseInt() methods.

Check if item exists in an Array Kotlin

In this post, we are going to explain the methods that can be used to check whether an item exists in an Array or ArrayList.

Get the index of an item in an Array Kotlin

In this post, we are going to explain different methods that can be used to get the index of an element in an array. We use the indexOf() function of Kotlin to get the index of an item.

Mutable List in Kotlin

Mutable lists are highly used as a collection in the Kotlin programming language. They can store multiple data items in it and you can also add or remove items from a mutable list.

Remove an item from Array in Kotlin

In this post, we are going to explain different methods that can be used to delete elements from an array using Kotlin. We will be converting the array to a mutable list to delete items from array.

Add new items to Array in Kotlin

In this post, we are going to describe different methods that can be used to add items to an array using Kotlin. We will be converting our arrays to mutable type to add new item.

Create an empty Array in Kotlin

There are multiple ways to create an empty array in Kotlin. In this post, we are going to explain multiple methods that can be used to create array with no items in it.

Get Length of an Array in Kotlin

The arrays are mutable collections of elements used in the Kotlin programming language. If you want to get the length of an array in Kotlin, you can use Array.size

Create an Array in Kotlin

Arrays in Kotlin are used to store one or multiple values and access them using their index that starts from 0. You can create implicit and explicit type Arrays in Kotlin. We use arrayOf() function of Kotlin to create an array.

Loading more...
Search all posts...