How do I convert Kotlin source files to java

I am following several tutorials to learn flutter but all of the platform specific code is in Java, a language which I know. However when I created my flutter project, the default android source was in Kotlin, a language which I do not know. Therefore is there a way for me to convert my Kotlin files(Main activity) to java?

@patrick_dm Would you be able to help me on this?

Sorry, Java & Kotlin aren’t in my toolbox, but let’s ask Google for something recent about that:

as I suspected, even if you can do it, the generated code is hard to work with and it is not a good idea if you need production code.

Thanks so much @patrick_dm! I think I will try this conversion and if it doesn’t work, I’ll try my luck with kotlin!