java reverse loop
for (int i = aList.size() - 1; i >= 0; i--) { String s = aList.get(i); }
Source: mkyong.com
java string loop backwards
public String reverseString(String str) { String res = ""; for (int i = 0; i < str.length(); i++) { res = str.charAt(i) + res; // Add each char to the *front* } return res; }
Source: stackoverflow.com