Donald Raab
Sep 26, 2023

--

Of course. As the link you provided shows, the method contains returns boolean, not the element contained in the Set. Thanks!

--

--

Donald Raab
Donald Raab

Written by Donald Raab

Java Champion. Creator of the Eclipse Collections OSS Java library (https://github.com/eclipse/eclipse-collections). Inspired by Smalltalk. Opinions are my own.

Responses (1)