1. Java Concept Matching.
- iteration
- using a loop structure for repetition
- recursion
- using a method that calls itself to perform repetition
- recursive method
- a method that calls itself
- recursive definition
- a sequential definition with a base case or multiple base cases, and then a recursive case that uses one or more earlier elements of the sequence to define the current element of the sequence
- base case
- a case where the method doesn’t call itself
- recursive case
- a condition where the method calls itself.
- head
- the first element of a string or an array
- tail
- everything after the first element of a string or an array
- tail recursive
- a recursive method where the only call to itself is the last call in the method.
- nontail recursive
- a recursive method that has a recursive call that is not the last call in the method.
Match each of the following Recursion concepts.