i have this piece of code. I wanted to return to the beginning of loop and ask for user input again. However, it always loops without stopping to ask for input. What is wron
do
{
try
{
//get user input
done = true;
}
catch (InputMismatchException e)
{
System.out.println("The number entered needs to be a int");
}
} while (!done);