1) What is an Armstrong number?
2) What steps have you taken to debug your code? Have you run it through a debugger? Do you use println statements to check state of variables at critical steps in the code?
3) When posting code here, please use code tags so that your code will retain its formatting and thus will be readable -- after all, your goal is to get as many people to read your post and understand your code as possible, right?

To do this, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.

Another way to do this is to manually place the tags into your code by placing the tag [cod&#101;] above your pasted code and the tag [/cod&#101;] below your pasted code like so:

Java Code:

[cod&#101;]
// your code goes here
// notice how the top and bottom tags are different
[/cod&#101;]

Thanks as always Jos. Actually, I've already looked it up, but I felt (and still feel) strongly that it is the OP's responsibility to take the effort to explain this concept to all if he's going to ask others to help him with this project.

Thanks as always Jos. Actually, I've already looked it up, but I felt (and still feel) strongly that it is the OP's responsibility to take the effort to explain this concept to all if he's going to ask others to help him with this project.

Yep, you're right (of course); posters should do their best to exaplain their problem as clearly as possible; none of us (well, except me ;-) are mind readers and we can't google for every unclear question and guess what the OP had meant ...