• + 0 comments

    There is something wrong with the default input and output streams provided in Java.

    I kept receiving an instant "Compilation Error: 'factorial' method not found" until I replaced the Buffered streams with Scanner for input and used System.out.println to print the result.

    You may want to consider this if you encounter a compilation error even though all tests pass.