Objectives |
|
A recursive method is a method that invokes itself directly or indirectly. Recursion is a useful programming technique. In some cases, using recursion enables you to develop a natural, straightforward, simple solution to a problem that would otherwise be difficult to solve. This chapter introduces the concepts and techniques of recursive programming and uses examples demonstrating how to "think recursively."