Hi
I have an assignment and i think the authors made a mistake because the scanner useDelimiter() method is not working
Here is the delimiter
"[\\s[^'a-zA-Z]]"
So far Ive coded
Scanner scan = new Scanner(aFileName); // aFileName is an argument in the method header
scan.useDelimiter([\\s[^'a-zA-Z]]);
...
...
While (scan.hasNext())
{
String aWord = scan.next()
...
... //add aWord to a hashMap for processing
}
My question is what does the code in the delimiter mean? and can it detect commas i.e (,) or full stops for that matter