For the example, lets say that we have a List of type String that contains four elements: "hello, ", "how ", "are ", "you?"
The best way to iterate over each element is by using a for-each loop:
public void printEachElement(List<String> list){
for...