recently I study kotlin. first, kotlin is not support static
.
so I use companion object
companion object InstanceHolder {
private val mCamera = MainActivity()
fun getInstance(): MainActivity {
return mCamera
}
}
but I want this source convert to java. How to convert kotlin to java?
thanks