Using for loop for Iterating objects
Normal for Loop
for(Iterator itr = requestList.iterator(); itr.hasNext(); ) {
Enhanced for Loop
for(RequestBean objRequestBean: requestList){
I have been collecting these notes from various Web Sites, Discussion Forums and my own experience.
Normal for Loop
Here is one way of getting the values from a map without using the method get(Object key)