Package at.jku.ssw.fp.sect03_1
Class Demo2_Fac
- java.lang.Object
-
- at.jku.ssw.fp.sect03_1.Demo2_Fac
-
public class Demo2_Fac extends Object
Demo showing imperative and recursive faculty methods.- Author:
- Herbert Praehofer
-
-
Constructor Summary
Constructors Constructor Description Demo2_Fac()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
facIter(int n)
(package private) static int
facRec(int n)
static void
main(String[] args)
-
-
-
Method Detail
-
facIter
static int facIter(int n)
-
facRec
static int facRec(int n)
-
main
public static void main(String[] args)
-
-