What Java method takes an int and returns +1 or -1? The criteria for this is whether or not the int is positive or negative. I looked through the documentation but I’m bad at reading it and I can’t find it. I know I’ve seen it somewhere though.
What Java method takes an int and returns +1 or -1? The criteria for
Share
Integer.signum(int i)