• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Piet Souris
Master Rancher
Posts: 2044
75
  • 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
Master Rancher
Posts: 2044
75
  • 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: 37513
554
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!