Ok, fine. You have been doggedly looking for illumination on this problem and this thread has gone on far too long.
I'll demonstrate to you my process. Keep in mind that there are many ways you can solve this problem. The one I first came up with many posts ago was not even object-oriented; I had all static methods. The reason I did that was because this was only one class and there didn't seem to be a compelling reason for me to create an OO design when there was just one class involved and the process was pretty much sequential. On the other hand, it might be educational to try to do it with a proper object instead of just a bunch of static methods. So, I step through an entirely new solution, using proper objects.
First of all, I see no need to convert to integers as you have been doing. The input is a
String and the user is expected to include only digits so I'll make the assumption that that is exactly what the user will do.
So, the first cut will be:
I'll compile this to make sure I have no errors so far. I see that it compiles with no errors, so I continue.
Edit:
The code posted above actually does have an error but it's a pretty quick fix. I'll leave it as originally posted anyway.