I am just practicing right now.

This should not execute if check2 is true:

else if (dummy=='.' && check2==false) {check2=true; return true;}

But for some reason the dots always print. I only want one dot to print and I can't figure out why that does not work right.