<Define array Type in Kotlin> I have initialized s...
# stackoverflow
u
Define array Type in Kotlin I have initialized such string Array var capitals = arrayOf("Tokyo","Moscow","Paris","Washington","Beijing") But I have not specified its type to String. I thought when I use arrayOf constructor after the arguments I should specify type.

https://i.stack.imgur.com/i47sv.png▾

Why I cannot have the type specified in brackets var capitals = arrayOf("Tokyo","Moscow","Paris","Washington","Beijing"):Array