choice = (char) keyboard.read(); // read only one character
keyboard.read(); // skip end of line character
is it a line like that? this only takes one character only for processing after listing keyboard inputs as a choice to a question. My advice to you is double check all ";" and "{}" but more than that I can't say really.