David David - 4 months ago 7
Java Question

What Java method takes an int and returns +1 or -1?

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.

Answer