package com.baeldung.stackoverflowerror;

public class RecursionWithCorrectTerminationCondition {
    public int calculateFactorial(final int number) {
        return number <= 1 ? 1 : number * calculateFactorial(number - 1);
    }
}
