First, implement convert function private inline fun toArray(list: List): Array { return (list as List).toTypedArray() }and then convert list to array with this function val list:List = lisfOf("harry", "potter") val array = toArray(list)If you need to put array value to vararg parameter to Java Function, you need to put * front of variable val familyName = getFamilyName(*array)When will vararg n..
I was using Kotlin version 1.2.41 and I upgraded Kotlin version 1.2.41 to 1.3.21. Then, I got compile Error. $ ‘runBlocking(CoroutineContext = ..., suspend CoroutineScope.() -> T): T’ is only available since Kotlin 1.3 and cannot be used in Kotlin 1.2Here is original code plugins { id "org.jetbrains.kotlin.jvm" version "$kotlinVersion" id "org.jetbrains.kotlin.plugin.spring" version "$kotlinVers..

1. Using existing Homepage https://start.spring.io/ - Setting Project, Language, spring boot version, and dependency - Click Generate the project to download with .Zip and unzip as folder - Open folder with Development tool(like IntelliJ, Eclipse) 2. Using IntelliJ - Go File -> New -> Project - Choose Spring Initializr - Choose Type, Language, dependency - create Project Automatically And https:..