the kotlin icon come out!
# getting-started
x
the kotlin icon come out!
r
xxxifan: After declaring it outside the class? That's curious, it should also work inside the class.
Okay, doesn't for me either. Strange.
Okay but now that we have that, click it and run the program. After you've done that you'll have a new, temporary run configuration which you can then save as a permanent one.
x
yes, I can run it now, thank you very much!
r
NP. And I just remembered why having it inside a class doesn't work - you need to have the function in the companion object of the class and annotate it with
@JvmStatic
if you really need it in the class.
👍 2