Can anybody explain why Iterable is in java.lang but Iterator is in java.util? Since they're always used together, it seems like they should be in the same package.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.