scanner -- how to count spaces a part of a string
843789Jun 20 2009 — edited Jul 27 2009I'm fooling around with Scanner in a little program just to teach myself. Right now, when given the chance to enter data, anything after a space is ignored, so, for example, if one enters "John Smith" for a name entry, on printout it only says "John." How can I fix this?