why the String class in java does not implement Iterable?
Posted
by xyzzyz
on Stack Overflow
See other posts from Stack Overflow
or by xyzzyz
Published on 2010-05-05T10:57:08Z
Indexed on
2010/05/05
11:08 UTC
Read the original article
Hit count: 114
Hey, many builtin classes in Java implement Iterable, however String does not. It makes sense to iterate over chars in the String, just as one can iterate over items in regular array. Is there a reason behind it?
© Stack Overflow or respective owner