This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error on page 190 - table 4.4 Sybex OCP 8 Jeanne/Scott  RSS feed

 
Piet Souris
Rancher
Posts: 1914
66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not see this one reported, so to be sure I report it as an error.

The table mentiones, for the findAny method, that it terminates for an infinite stream. This is not always the case of course:

does not terminate.
 
Piet Souris
Rancher
Posts: 1914
66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My bad!

In my progrm I had 'anyMatch' when I thought I had typed 'findAny'. Apologies for this blunder.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37051
507
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No worries. You got to learn something. (to pay attention to those method names). And the next person who does the same thing can google it and find this post for the answer.

Have a cow for the self-correction!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!