You are first displaying the reverse string, then outputting Your reverse name is. But the string is never reversed. Use:
I'm trying to reverse the digits of integer. Instead of doing the codes like what I have done, is there any other way to do it? Can i reverse it using java stream?