* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
730 B
Markdown
8 lines
730 B
Markdown
# Method Chaining
|
|
|
|
Method chaining is a programming technique where multiple method calls are made sequentially on the same object, one after another, in a single statement. Each method in the chain returns an object, allowing the next method to be called on that returned object. This approach enhances code readability and conciseness by reducing the need for temporary variables and intermediate steps.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@@GeeksforGeeks@Method Chaining In Java with Examples](https://www.geeksforgeeks.org/java/method-chaining-in-java-with-examples/)
|
|
- [@article@How to achieve method chaining in Java](https://stackoverflow.com/questions/21180269/how-to-achieve-method-chaining-in-java) |