Question from the Java test

Why doesn't HashSet have a get method?