How to reverse a number in Java

By | August 10, 2018

In previous post How to swap or exchange two numbers with or without using any temporary variable in java we learnt how to swap two number with or without using any temporary variable.

In this post we will learn How to reverse a number in Java

I have tested  above program for few inputs as below. You may check for other input as well 

That’s all about  this topic How to reverse a number in Java
If you have any feedback or suggestion please feel free to drop in blow comment box.

 

Leave a Reply

Your email address will not be published. Required fields are marked *