In my Kotlin project, I have some parts of Java code that I want to convert to Kotlin. The menu item that converts the Java file to Kotlin is disabled because it's not a whole file I want to convert.
How can I convert Java code to Kotlin?
In my Kotlin project, I have some parts of Java code that I want to convert to Kotlin. The menu item that converts the Java file to Kotlin is disabled because it's not a whole file I want to convert.
How can I convert Java code to Kotlin?
没有将Kotlin代码转换为Java的工具.如果要将文件的一部分从Java转换为Kotlin,最简单的方法是从IDE中的Java文件复制代码,并将其粘贴到Kotlin文件中.