public static void main(String[] args)
{
String sr = "abcefhe0";
System.out.println("before:"+ sr);
System.out.println("after :"+subString(sr));
}
public static String subString(String willdillStr)
{
if(willdillStr != null && willdillStr.length() >0)
{
return subString(willdillStr.substring(1))+ willdillStr.substring(0,1);
}
return willdillStr;
}