Use as repalcement of static methodsfields of java

suggest change
object CommonUtils {

    var anyname: String ="Hello"

    fun dispMsg(message: String) {
        println(message)
    }
}

From any other class, just invoke the variable and functions in this way:

CommonUtils.anyname
CommonUtils.dispMsg("like static call")

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents