什么Java方法采用int并返回+1或-1? [英] What Java method takes an int and returns +1 or -1?
本文介绍了什么Java方法采用int并返回+1或-1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么Java方法需要 int
并返回+1或-1?这个标准是 int
是正还是负。我仔细阅读了文档,但我很难读它,我找不到它。我知道我已经在某个地方见过了。
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.
推荐答案
这篇关于什么Java方法采用int并返回+1或-1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文