Hello again. I am hoping you can help me with 2 problems. I will send th

Hello again. I am hoping you can help me with 2 problems. I will send the second separately. Here are the requirements for the first problem:Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also, write a program to test your method. This program must also account for a negative number so that if -1234 is entered program returns -4321. Additionally, the negative number cannot be stripped from the input and added back in – for example this pseudo code:reverseNum = -reverseNum;return reverseNum;I have all of this solved except for the negative return. When I input a negative number I get a 0 returned. Attached is my code thus far. Please correct to account for a negative number. Also, can you please evaluate my comments add comments where ever applicable to explain your solution and where I might have something wrong or missing?

Don't use plagiarized sources. Get Your Custom Essay on
Hello again. I am hoping you can help me with 2 problems. I will send th
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT! To Get a 10% Discount Use Coupon Code FIRST39420
Order Essay
Calculator

Calculate the price of your paper

Total price:$26
Our features

We've got everything to become your favourite writing service

Need a better grade?
We've got you covered.

Order your paper