Hello, im new the forums and was wondering if you could help me with a problem I have to do for my Comp Sci class.
The question is:
Write a function called reverse that takes a long integer argument and returns the result of reversing its digits.
for example System.out.print(reverse(-12); returns -21
Im not just asking for someone to spew out the code but also if they had the time to also possibly explain it a little more for me?
any help is appreciated thank you.