What is the purpose of the `thenApply()` method in `CompletableFuture`?
`thenApply()` is used to convert the result of a computation to another type, and it only works with tasks that return a `void` value.
Thatâ€™s incorrect. `thenApply()` is for handling results that return a value, not `void`.
Can you explain how `thenApply()` handles non-void results in the context of a computation?