public static String reverseString(String x) {
if(x == null || x.length() < 2){
return x;
}else{
return reverseString(x.substring(1)) + x.charAt(0);
}
}
if(x == null || x.length() < 2){
return x;
}else{
return reverseString(x.substring(1)) + x.charAt(0);
}
}