public final class Factorial extends Object
public static long value(int n)
n
.n
- Argument.n!
IllegalArgumentException
- if n < 0
.IllegalArgumentException
- if n > 20
(the factorial
value is too large to fit in a long
).Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.