What is the purpose of the `return` keyword in a Java method?
The `return` keyword is used to return a methodâ€™s output as a global variable.
Iâ€™m a bit disappointed with this answer. The `return` keyword sends the value back to the method's caller, not to a global variable.
Can you clarify the role of `return` in returning values and how local variables work within methods?