Java cannot directly call a suspending function without the suspend keyword in Kotlin.Five easy ways to convert suspending code in Kotlin and call it from Java are shown.Use a callback to deliver the result of the coroutine.Use CompletableFuture to give Java the responsibility for handling errors and cancellation.