@@ -0,0 +1,387 @@
+package ru.job4j;%0A%0A/**%0A** Counter class.%0A * @author ayuzyak.%0A * @version 1.%0A * @since 18.12.2016.%0A */%0Apublic class Factorial %7B%0A%0A    /**%0A     * Calculate factorial%0A     * @param n - factorial%0A     * @return%0A     */%0A    public int calculate(int n) %7B%0A        int factorial = 1;%0A        while (n %3E 0) %7B%0A            factorial *= n;%0A            n--;%0A        %7D%0A        return factorial;%0A    %7D%0A%7D

add Factorial.java