The above works fine. Now if I wish to change the for loop just a bit like:
for(
String s
String)l)
System.out.println(s);
It doesnt work. The problem is in the for loop How can I downcast the List's values which are Objects to Strings to get my proposed for loop to work?