This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Question is from CertPal
Though I've read about invocation of useDelimiter() on Scanner, but I don't know about Scanner.delimiter() and I couldn't find it.
It's used in this program(highlighted with a comment).
Does scanner.delimiter() return an instance of Pattern? If yes, what is the argument in that Pattern's instance?
I only knew the following way to instantiate Pattern:
Pattern p = Pattern.compile("\\d");
OCPJP 6 - 96%
Currently working on Scala at Knoldus Software