public class Factorial
extends java.lang.Object
| Constructor and Description |
|---|
Factorial() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Gets an integer from the console, passes it to method factorial()
and displays the resulting factorial to the console.
|
public static void main(java.lang.String[] args)
args - the String[] array command line parameterjava.util.InputMismatchException - if user enters non-integer input