Java/rec_revstrng.java
package recursion;

public class rec_revstrng {
    public static String revString(String str) {
        if(str.length() == 1) {
            return str;
        }
        char currChar = str.charAt(0);
        String nextString = revString(str.substring(1));
        return nextString + currChar;
    }
    public static void main(String args[]) {

        String str = "dexboi";
        String reversed = revString(str);
        System.out.println(reversed);
    }
}
