void () { List<String> ss = new ArrayList<>(); ss.add("a"); ss.add("b"); ss.add("c"); StringBuilder log = new StringBuilder(); for (String s : ss) { log.append(s); } for (String s : ContainerUtil.iterateBackward(ss)) { log.append(s); } assertEquals("abccba", log.toString()); }