I am unable to translate(from Kotlin to Java) or understand this statement service.connectionListener = { addConnection(it) } which is found in the inner class of the following file: I was unable to translate the above statement (commented out): Answer This code in Kotlin: Corresponds to this code in Java: It is assumed that Service class is written in Kotlin and