由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 问一个问题
相关主题
Help: could not find deserializer. Thx关于Random怎么用?
deserializer probelm.Ignore upper. ThxGenerics应该怎么得到它的class?
几个问题问个 Generic 的问题
Can someone help on Soap?can applet implements runnable?
another Java interview Question问一个特别土的问题
List, LinkedList and VectorTimer and TimerTask
immutable listjvm是怎么implement monitor的?
is access to int[] faster than List?interface和implementation class
相关话题的讨论汇总
话题: list话题: undefined话题: result话题: search话题: string
进入Java版参与讨论
1 (共1页)
d********g
发帖数: 8
1
Given:
13. public static void search(List list) {
14. list.clear();
15. list.add(”b”);
16. list.add(”a”);
17. list.add(”c”);
18. System.out.println(Collections.binarySearch(list, “a”));
19. }
What is the result of calling search with a valid List implementation?
1 or The result is undefined
s***y
发帖数: 124
2
Undefined.
list needs to be sorted first.
Collections.sort(list);
1 (共1页)
进入Java版参与讨论
相关主题
interface和implementation classanother Java interview Question
java问题:如何match两个正规表达式List, LinkedList and Vector
java string streamimmutable list
出个简单题,看你Java APi熟悉到什么程度is access to int[] faster than List?
Help: could not find deserializer. Thx关于Random怎么用?
deserializer probelm.Ignore upper. ThxGenerics应该怎么得到它的class?
几个问题问个 Generic 的问题
Can someone help on Soap?can applet implements runnable?
相关话题的讨论汇总
话题: list话题: undefined话题: result话题: search话题: string