If you don't want it to "over count" use a while loop:
while(continue())
{
loopCount++;
System.out.println("Enter a number: ");
if (Scanner.nextInt() < 0)
{
...
Type: Posts; User: helloworld922
If you don't want it to "over count" use a while loop:
while(continue())
{
loopCount++;
System.out.println("Enter a number: ");
if (Scanner.nextInt() < 0)
{
...
You're calling the method continue twice. Each time, it will ask the user if you want to continue. What you should do is only call it once, and store the result of that call in a variable so you can...