Daily Archives: 2007-04-18

Java is a very powerful object oriented language. If you search for recursion in wikipedia you will find this definition “Recursion, in mathematics and computer science, is a method of defining functions in which the function being defined is applied within its own definition.” This means, that the function will call itself again and again until it gets the correct answer. There are many pages where you can find great explanations to recursion theory. Most of them use the example of the Towers of Hanoi: Cut The Knot –Towers of Hanoi– Recursion –Towers of Hanoi– Java Recursion with examples What […]

Java recursive functions explained // Using recursion to sum an ...