Is there a general guideline for prefixing Java method names with useXxx() vs. setXxx()?
I tried to call the setDelimiter() method of the Scanner class, only to find it was named useDelimiter(). The JavaDoc describes this method as “Sets this scanner’s delimiting pattern…”
So, why useXxx() instead of setXxx()?
it is not the standard setter method. its set the delimPattern and return Scanner object