Did you post the errors for this code? I can't find this statement in the code:

while (c.charAt(0) == 'y');

Please edit your post and wrap your code with code tags:


YOUR CODE HERE

to...