BTW, unless you specifically want a list to be thread-safe, standard practice would be:
List<String> prev = new ArrayList<String>();