The problem is this line:

sure = myScanner.findInLine(".").charAt(0);

The findInLine call is returning null, so you get an exception when you try to call charAt on the result.

You've just...