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 perform this conversion:
-5 -> 5
5 -> -5
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…