본문 바로가기 메뉴 바로가기

Programming makes everything

프로필사진
  • Git Blog
  • GitHub
  • LinkedIn
  • Facebook
  • Instagram
  • Email

Programming makes everything

검색하기 폼
  • All Categories
    • Architecture
      • Front-End
      • Back-End
      • Design Pattern
    • Computer Language
      • Scala
      • Kotlin
      • Python
      • Java
    • Data Engineering
      • Spark
      • HQL
      • Airflow
    • Development Tools
      • IntelliJ
      • GitHub
  • 방명록

[Kotlin] How to convert List to an array in Kotlin?

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..

Computer Language/Kotlin 2019. 9. 3. 08:28
[TroubleShooting] CoroutineContext version up issue

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..

Computer Language/Kotlin 2019. 8. 30. 00:29
[TroubleShooting] Kotlin not configured in IntelliJ

Trouble Shooting history When I create spring-boot with Kotlin, IntelliJ can't reconize Kotlin class. As a result, I added the standard library to dependency management. implementation("org.jetbrains.kotlin:kotlin-stdlib")Kotlin-stdlib has extended versions of the standard library that add support for some of the features of JDK 7 and JDK 8. Checking https://kotlinlang.org/docs/reference/usi..

Computer Language/Kotlin 2019. 8. 27. 08:00
이전 1 2 다음
이전 다음
TAG
  • IntelliJ
  • kotlin
  • Ultimate Edition
  • NPE
  • Gradle
  • idea
  • NullPointerException
  • Java
  • Kotlin 1.3
  • spring boot
more
Recent Post
Follow
  • Blog
  • Github
  • LinkedIn

Blog is powered by Tistory / Designed by Tistory / Management Page

티스토리툴바