Is there anything that will convert Kotlin down to...
# general-advice
m
Is there anything that will convert Kotlin down to Java, I know it goes the other way via intellij and I always assumed you could do the reverse if need be but it does not seem like you can?
s
Depends what you're looking for. If you just want a rough and ready idea of what the Java code looks like, you can go to Tools > Show Kotlin bytecode and then ask IntelliJ to decompile the bytecode to Java. But what you get is sometimes not very human readable. If you want nice clean Java code you can actually use, I don't know of a good way.
m
Ah much appreciated @Sam, it won't be that hard to do by hand I just wanted to check first in case I could save time - I'll give the bytecode a try to see how it looks 👍
👍 1