-
Is it possible to import kotlin code into the java files? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'm not sure what you mean by importing Kotlin code, but you can call Kotlin from Java (Jetbrains Docs). I'm sure there are also plenty of other resources out there about using Java and Kotlin in the same project. |
Beta Was this translation helpful? Give feedback.
-
Yes. You can use both Kotlin and Java code in your project file due to interoperability which enables the use of Kotlin code in Java and Java code in Kotlin. Just create your Java file and Kotlin file and access the functions in either Java or Kotlin by calling them the way you usually do. |
Beta Was this translation helpful? Give feedback.
-
after searching a bit I found out this is a vscode problem with an open isue since 2018 redhat-developer/vscode-java#531 |
Beta Was this translation helpful? Give feedback.
after searching a bit I found out this is a vscode problem with an open isue since 2018 redhat-developer/vscode-java#531