Is there a way to convert Kotlin to Readable Java?
# announcements
g
Is there a way to convert Kotlin to Readable Java?
d
A quick google led me to this link. https://www.baeldung.com/kotlin-convert-to-java... whether it is going to be readable or not most likely will depend on how complicated your code is.
Just like most of the decompiling output, the java code might not be that pretty...
i
No, there is not, since Kotlin has many features that are possible in Java bytecode, but impossible in Java like synthetic fields and functions, coroutine continuations etc.
m
does any java qualify as readable after reading kotlin? 🤔
☝️ 3
🤣 7
a
Most readable code ever in Java:
Copy code
public class HelloWorld {
   public static void main(String[] args) {
       System.out.println("Goodbye Cruel Java™ World!");
   }
}
Note, it can compile -- Just need those 4 lines for a print statement.
a
Or 5 😜