Is there any facility in the standard Java libraries that, given a CharSequence, produces the reverse in O(1) time?
I guess this is \"easy\" to implement, just wond
// worked hard to figure this out
public static String ReverseString(String s){ if (s.length()>0){ s=s.charAt(s.length()-1)+printString(s.substring(0,s.length()-1)); } return s; }