This amuses me to no end:
Iteratoriter = properties.getKeys();
for (String key : iter) {
// do something with the key
}
The above java will not compile, and the error is "Can only iterate over an array or an instance of java.lang.Iterable." Apparently an Iterator isn't iterable! Wow! Isn't that so convenient?


0 comments:
Post a Comment