Is there a way to change the name of the variable ...
# announcements
q
Is there a way to change the name of the variable that holds kotlin objects?
g
Yes, just add desired name after
companion object
Like:
Copy code
companion object SomeName {

}
s
@Quy D X Nguyen and if you’re talking about the representation if you interact with your Kotlin code from the Java side, take a look at the @JvmName and @JvmStatic annotations https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/index.html