By contrast with List, it is not possible to retrieve an element from Set directly, because you cannot use index or another way to point to the object. But it is possible to iterate through the set as was described previously, in the subsection Iterate and stream.