As @Vadzim said, in IntelliJ or Android Studio, you just have to do the following to get java code from kotlin:
Read moreWhat is Kotlin plugin IntelliJ?
The Kotlin plugin provides language support in IntelliJ IDEA and Android Studio . Getting Started in IntelliJ IDEA. Getting Started in Android Studio. Public Slack. Issue tracker.
Read moreHow do I add IntelliJ Kotlin compiler?
Go to Intellij Preferences -> Build, Execution, Deployment -> Kotlin Compiler . Update Language version and Api version to the one you wish. This should be the accepted answer.
Read moreHow do I set up Kotlin?
To add Kotlin to your project, do the following:
Read moreHow do I find my Kotlin version in IntelliJ?
You can follow these instructions to install the preview version of the Kotlin Plugin for IntelliJ IDEA or Android Studio.
Read moreHow do I fix Kotlin not configured?
Important Update
Read moreDo Java libraries work in Kotlin?
Can I call Android or other Java language library APIs from Kotlin? Yes. Kotlin provides Java language interoperability .3 Kas 2020
Read more