October 2019
Intermediate to advanced
434 pages
11h 54m
English
The first method of Java conversion is to convert an existing Java file into a Kotlin file. Let's walk through this conversion process with a simple example. We'll start with this simple Java ViewModel class:

We can see that this Java file currently resides within the same source directory as the Main.kt Kotlin file. This illustrates that Java and Kotlin code can exist, side by side, within the same directories. You don't have to concern yourself about isolating one language from the other.
We can convert this ViewModel class into Kotlin using the Convert Java File to Kotlin File tool within IntelliJ. ...
Read now
Unlock full access