Compilation was succesful, the exception happens when running the code.
You forgot to indicate the comma to be the delimiter, so I guess
something like this would solve it
scanref.useDelimiter("\\s*,\\s*");
// use a comma as delimiter, possibly flanked by whitespace.
--
http://javalessons.com Paul Hamaker, SEMM
Teaching ICT since 1987
Compilation was succesful, the exception happens when running the code.
You forgot to indicate the comma to be the delimiter, so I guess
something like this would solve it
scan.useDelimiter("\\s*,\\s*");
// use a comma as delimiter, possibly whitespace on either side.

Signature
http://javalessons.com Paul Hamaker, SEMM
Teaching ICT since 1987
BillJosephson - 06 Nov 2006 09:22 GMT
> Compilation was succesful, the exception happens when running the code.
> You forgot to indicate the comma to be the delimiter, so I guess
[quoted text clipped - 4 lines]
> http://javalessons.com Paul Hamaker, SEMM
> Teaching ICT since 1987
WOW, that did it!!! Thank you SO MUCH !
Many many many thanks...