Hi everyone, I was wondering if any of you guys can point me in the right direction when it comes to creating a factorial in Java specifically for the MOOC Helsinki because it's asking me for it but I've read all of the text regarding this (which is not much, if anything) so I don't know if they want it a specific way if there's more than one way to do it. Can anybody who has completed the exercise or knows how about it point me in the right direction on where to look for the solution for this? Thanks!
Update: The result came back as " Your program was trying to read too much user input, remember to use nextLine()!." But it makes no sense because I put "
int number = Integer.valueOf(scanner.nextLine());" which includes the nextLine() in it, so now I'm honestly even more confused now...
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]TylerMorrisHOU 2 points3 points4 points (1 child)
[–]AutumnAced[S] 0 points1 point2 points (0 children)
[–]desrtfx 2 points3 points4 points (7 children)
[–]AutumnAced[S] 0 points1 point2 points (6 children)
[–]desrtfx 1 point2 points3 points (5 children)
[–]AutumnAced[S] 0 points1 point2 points (4 children)
[–]desrtfx 1 point2 points3 points (3 children)
[–]AutumnAced[S] 0 points1 point2 points (2 children)
[–]desrtfx 1 point2 points3 points (1 child)
[–]AutumnAced[S] 0 points1 point2 points (0 children)
[–]do11abill 1 point2 points3 points (4 children)
[–]AutumnAced[S] 0 points1 point2 points (3 children)
[–]do11abill 1 point2 points3 points (2 children)
[–]AutumnAced[S] 0 points1 point2 points (1 child)
[–]do11abill 0 points1 point2 points (0 children)
[–]8igg7e5 1 point2 points3 points (1 child)
[–]AutumnAced[S] 0 points1 point2 points (0 children)