Scanner kb = new Scanner(System.
out);
Should that not be
in?
Two other reasons why input is being skipped is the input object 'kb' is not
being overwritten by the next input. It is a bug I have seen when using Net beans once before.
To get around this - rest the input to zero at the end of the input cycle.
Another piece of advice (which I learnt from this forum and kudos and thumbs up to Greg and Norm for this)
is that if you are only outputting to the console you do not need to "close" the Scanner after the input. It does
generate a warning on Eclipse - but it's just a reminder that closing Scanner may cause a resource leak if used
with files/streams etc. You can safely ignore the error when dealing with simple console applications.
Wishes Ada xx