• 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: 1834
61
  • 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: 1834
61
  • 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: 36651
475
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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!