I need to read a .txt file into a list and then pass one element of the list to a method and return to the main loop, run through the loop again and pass in the next element...
Thanks
File file = new File("pathToFile.txt");
List<String> contents = FileUtils.readLines(file);
do some stuff....
if(!blah.blah().equals(something)){
for (String line : contents)
//pass one element of the list into the method and then go
//back to the top of the loop to navigate to another
//page and pass the next element...
call.method(line);
}