# Unit 4D - Code Practice for Recursion

Each coding exercise has its own folder. Open its `.java` file and press **Run** to try it. **Run Tests** checks every graded exercise in this lesson at once.

## Exercise 1

Replace the “ADD CODE HERE” below with the code to complete the findSum method. The method should take the sum of every value that is less than or equal to n. For example, findSum(3) should return 6. The output of the program should be 15.

> Open the `01-RecursionPractice1` folder and edit `Recursion.java`. Press **Run** to try it; **Run Tests** checks it (2 tests).

If you would like to try writing recursive methods check out the recursion problems at CodingBat at [http://codingbat.com/java/Recursion-1](http://codingbat.com/java/Recursion-1).
