I have a kotlin method as follows:
fun methodWithCallBackAsParameter(callback:() -> Unit) {
//Do Somejob
callback()
}
In kotlin we simply use this method with following syntax:
methodWithCallBackAsParameter {
//Some Instructions here.
}
Now I want to use this Kotlin method in a Java class but I am not able to figure out how.