Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in K&B SCJP 5: topic Pattern and Matcher methods

 
Franz Fountain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the item in question:
"You should understand the Pattern compile() method and the Matcher matches(), pattern(), find(), start(), and group() methods."

In the current errata there is this:
497....bug.......6th bullet: was matcher() s/b: matches()

I think it should say:
"You should understand the Pattern compile() and matcher() methods and the Matcher pattern(), find(), start(), and group() methods."

That's different from the current errata. Notice also that I removed the matches() method from Matcher since I didn't see any mention of it in K&B. (Although it's fine method and it's parents should be very proud.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic