I have this code:
for(iteration<string> it=name_list.iterator();it.hasNext();)
What would be a suitable pseudo-code representation for the above code?
Since pseudo-code is meant to be more human-readable, I'd simply opt for something like:
for each name in name_list:
do something with name
You shouldn't have any need to put implementation details like iterators in your pseudo-code, rather you should simply specify intent. And I find the Python style of coding suits this sort of thing perfectly.
You should also use more descriptive names than it. I'm assuming that's for iterator but it gives absolutely no indication as to what the variable is. This is something you should aim for not just in pseudo-code but in real code as well.