https://kotlinlang.org logo
Title
d

Dalinar

12/21/2018, 6:39 AM
what's the secret to paste-convert java to kotlin?
g

gildor

12/21/2018, 6:55 AM
Just copy and paste, usually it works like that
d

Dalinar

12/21/2018, 6:57 AM
in what situations won't it work? maybe should have not included the comments // at the top of the java code?
g

gildor

12/21/2018, 6:58 AM
no, I had it when copy-paste from Kotlin file %)
or something like that
also you can just paste to java file -> convert to Kotlin
d

Dalinar

12/21/2018, 6:59 AM
ok I guess I won't worry about it, probably just this one file.. yeah I did that already and it worked, basically the same except the file contained the package line
d

Dico

12/21/2018, 12:03 PM
Yeah in intellij it's under code tab at the very bottom