Let me make you clear, I'm not that of a programmer on myself. I'm learning by self from the web and I encountered a very unfamiliar bug in my java program. There is no syntax error but the output is incorrect. I've little knowledge in QBASIC and Python and JAVA is very new to me!
So after I learned a little maths syntax and a bit of loop in Java, I tried to create a program to find if the number is armstrong or not. Well, we all know '153' is a armstrong number but the program says that it isn't. I did maths on my own and I can't find out where the logic went wrong. I know there are very experienced programmers on the web who could help me with this logical error that I have encountered. !
here is the link to pastebin file of the actual code I used. Try to be as detail as possible in the comments because I may not know the technical terms.