Default imports

The following packages are imported by default into every Kotlin file:

  • kotlin.*
  • kotlin.annotation.*
  • kotlin.collections.*
  • kotlin.comparisons.* (since 1.1)
  • kotlin.io.*
  • kotlin.ranges.*
  • kotlin.sequences.*
  • kotlin.text.*

When running Kotlin applications on the JVM, the following packages are also imported:

java.lang.*
kotlin.jvm.*
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.148.105