I have a Kotlin source file, but I want to translate it to Java.
How can I convert Kotlin to Java source?
In IntelliJ or Android Studio, you just have to do the following to get java code from kotlin:
- Menu>Tools>Kotlin>Show Kotlin Bytecode
- Click on the
- Copy the java code
This question was reposted from Stack Overflow