Is there a Java function to convert a positive int to a negative one and a negative int to a positive one?
I\'m looking for a reverse function to perfor
reverse
You can use Math:
int x = Math.abs(-5);