I HAVE WRITTEN THIS PROGRAM IN ECLLIPSE TO REVERSE A STACK BUT WHEN I RUN MY PROGRAM IT IS PRINTING EMPTY STACK.PLS CHECK MISTAKE REVERSE METHOD

LINKTO THE CODE— https://onlinegdb.com/SyGSCWN1O

pls check my mistake