currentProfile.getFriends() method returns a Iterator over a ArrayList. It works as supposed but the compiler gives me a friendly warning when assigning it to another iterator: iterator is a raw type. References to generic type Iterator <E> should be parameterized
I have little or no idea what this means, care to enlighten me? if my description were not clear enough, this is what I am doing Iterator friendList = currentProfile.getFriends();
Please look at the signature of the method getFriends() if you can. That should look like:
the "some type" is the type you need to put in the Iterator reference.
For example if the method is:
use: