How shall I declare Iterator?
Posted
by Knowing me knowing you
on Stack Overflow
See other posts from Stack Overflow
or by Knowing me knowing you
Published on 2010-06-10T10:18:20Z
Indexed on
2010/06/10
10:22 UTC
Read the original article
Hit count: 186
Which form is preferred:
String my = "Which form shall I use?";
Iterator iter = my.iterator();
or
Iterator<String> iter = my.iterator();
I personally preferr the former but in my materials from uni they use the latter.
© Stack Overflow or respective owner