// File: Reverse.java
// Time-stamp: "2005-01-09 12:26:25 calvanese"

/*
   Static method that, given a string s, returns the string constituted by the
   characters of s in inverse order.
*/

public class Reverse {
	
    public static String reverse(String s) {
	if (s.equals(""))
          return "";
	else
          return reverse(s.substring(1)) + s.substring(0,1);
    }
}
