About 288,000 results
Open links in new tab
  1. Create String Array in Kotlin - Tutorial Kart

    In this tutorial, you shall learn how to create an array of String objects in Kotlin using arrayOf() function, with examples.

  2. android - String-array in Kotlin - Stack Overflow

    Feb 20, 2018 · I used this concept as follows successfully: private var list= mutableListOf<String>("") list = resources.getStringArray(R.array.string-array-list …

  3. How to initiate String array in Kotlin? - Stack Overflow

    Dec 20, 2017 · Try this arrayOf () to create array in Kotlin. to get values from array use below code. You can read more here about it. array of strings can be initialized with square brackets …

  4. Kotlin Array - GeeksforGeeks

    Jul 16, 2019 · Here is a working example of Kotlin array manipulation in which we create an array, modify its values, and access a particular element: fun main() { // declare an array using arrayOf()

  5. How to Declare a String Array in Kotlin - Python Examples

    To declare a string array in Kotlin, you can use the arrayOf function or initialize an array of strings. We use the arrayOf function to declare a string array named stringArray with specific string …

  6. Arrays | Kotlin Documentation - Kotlin Programming Language

    Sep 25, 2024 · In Kotlin, you can work with arrays by using them to pass a variable number of arguments to a function or perform operations on the arrays themselves. For example, …

  7. Kotlin Equivalent to Java String Arrays | Baeldung on Kotlin

    Mar 19, 2024 · For that purpose, Kotlin provides ByteArray, ShortArray, IntArray, CharArray, DoubleArray, and FloatArray. Thanks to that, we don’t have to use the Array class. Moreover, …

  8. Kotlin – Create String Array - Tech Android Network

    Nov 7, 2023 · Learn how to create String arrays in Kotlin with step-by-step examples. Discover various methods and operations for efficient array manipulation.

  9. Equivalent of Java String [] in Kotlin - Delft Stack

    Apr 21, 2022 · This article introduces the equivalent of Java String[] in Kotlin. We will see all the possible ways to achieve the same results for Kotlin as achieved by String[] in Java.

  10. Guide to Arrays in Kotlin | Baeldung on Kotlin

    Mar 19, 2024 · In this article, we’ll take a holistic approach to understand the support for arrays in Kotlin. 2. Get and Set Functions. First, let’s initialize an array with String values to store the …

Refresh