Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to initialize an array in Kotlin with values?
Home
Kotlin
How to initialize an array in Kotlin with values?
0
votes
asked
Oct 6, 2021
in
Kotlin
by
Robin
How to initialize an array in Kotlin with values?
arrary-intialize
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 6, 2021
by
Robin
val numbers: IntArray = intArrayOf(10, 20, 30, 40, 50)
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: What is the Index of an Array in Kotlin?
asked
May 26, 2022
in
Kotlin
by
Robin
kotlin-arrary-index
0
votes
Q: May you use IntArray and an Array<Int> is in Kotlin interchangeably?
asked
Oct 6, 2021
in
Kotlin
by
Robin
kotlin-initialize-array
0
votes
Q: Explain Array in Kotlin
asked
May 26, 2022
in
Kotlin
by
Robin
kotlin-array
0
votes
Q: How can you initialize a 5*5 numpy array with only zeroes?
asked
Feb 10, 2021
in
Python
by
SakshiSharma
#numpy-array
array-python
numpy-python
python
Python-questions-answers
0
votes
Q: Why is Kotlin interoperable with Java?
asked
Oct 5, 2021
in
Kotlin
by
rajeshsharma
kotlin-interoperable
0
votes
Q: How to initialize array in java?
asked
Oct 9, 2020
in
JAVA
by
SakshiSharma
#initialize-arrary-in-java
#java-array-initialisation
#
Java-questions-answers
0
votes
Q: How is it recommended to create constants in Kotlin?
asked
Oct 6, 2021
in
Kotlin
by
Robin
kotlin-constant
0
votes
Q: How to compare two strings in Kotlin?
asked
Oct 5, 2021
in
Kotlin
by
rajeshsharma
kotlin-string-comparision
0
votes
Q: How can you handle null exceptions in Kotlin?
asked
Oct 5, 2021
in
Kotlin
by
rajeshsharma
null-exception-kotlin
0
votes
Q: How many constructors are available in Kotlin?
asked
Oct 5, 2021
in
Kotlin
by
rajeshsharma
kotlin-constructors
...