@@ -0,0 +1,521 @@
+package com.sunny.grokkingalgorithms.boot2019.ds;%0A%0Aimport java.util.Stack;%0A%0Apublic class StackReversalUsingRecursion%7B%0A%0A    public static void reverse(Stack%3CInteger%3E stack)%7B%0A        if(stack.isEmpty())%7B%0A            return;%0A        %7D%0A        int i = stack.pop();%0A        reverse(stack);%0A        System.out.println(i);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Stack%3CInteger%3E stack = new Stack();%0A        for(int i = 0 ; i %3C 5 ; i++)%7B%0A            stack.push(i);%0A        %7D%0A        reverse(stack);%0A    %7D%0A%0A%0A%7D%0A

Print stack in reverse.