@pratul
When you post code solving a students problem, can you add comments to it explaining how it works and why.
Also please put your code in code tags. Info here: Java Forums - BB Code List
Type: Posts; User: Norm
@pratul
When you post code solving a students problem, can you add comments to it explaining how it works and why.
Also please put your code in code tags. Info here: Java Forums - BB Code List
I can replace the InputHelper without no problem.
But I can't help you with your code without seeing your code.
Why does the program end after the user enters the 5?
What code is supposed to...
Can you post what is printed on the console when you execute the program?
Add some comments to that output showing where you want the program to work differently.
Also post the full code that you...
I assume that the value of the askUser variable is false when the user enters: "no".
What does your code do when the value of askUser is false?
You didn't post the rest of the code in while loop....
Use a loop that does not exit until the user says OK by entering the special value.
What does your code currently do? I see a while loop that tests for the ending value. Does that work as you...