You already asked that question and you got replies: www.javaprogrammingforums.com/loops-control-statements/33115-if-else-loop-do-while-loop.html