Java · Exceptions, files and recursion

Recursion: a method that calls itself

Some problems contain a smaller copy of themselves, and a method that calls itself solves them by handing the smaller copy on.