马上要考SCJP了,问一道题.
Give a properly prepared String array containing five elements,which range
of results could a proper invocation of Arrays.binarysearch() produce?
A: 0 through 4
B: 0 through 5
C: -1 through 4
A: -1 through 5
A: -5 through 4
A: -5 through 5
A: -6 through 4
A: -6 through 5
请高人给出答案并解释!
Give a properly prepared String array containing five elements,which range
of results could a proper invocation of Arrays.binarysearch() produce?
A: 0 through 4
B: 0 through 5
C: -1 through 4
A: -1 through 5
A: -5 through 4
A: -5 through 5
A: -6 through 4
A: -6 through 5
请高人给出答案并解释!
解决方案 »
- 求教!本人欲做聊天软件练手,但用socket扫描局域网时,总是出现time out,请问高手有何高招啊?
- 多线程的疑惑,请高手解答~~~~~~~~~~
- 欢迎各位喜欢SWT的朋友来谈谈自己使用SWT的一些感受和心得
- 有一起报传智博客java基础班的吗?团报优惠,本人也报名
- jxl第3问:关于合并过的单元格的自动调整行高
- 请问能否用java写出一个隐藏的窗口?
- java线程池的 awaitTermination 方法不太懂。请大神指点一下
- 请问有哪些比较好的Java图表控件?
- 请问tomcat3 or tomcat4里的mod_webapp.so文件是怎样形成的呀,(只有100分了)
- extenss 问题啊
- 一个基础题
- 为何两个相同的String,比较结果却是False??
找不到,返回-1,找到返回相应的位置,但是从0开始的,0代表第一个匹配,依次类推