【正文】
c class Test1 { public static void changeStr(String str){ str=”wele”。A39。C39。t add new functionality, while Mediator routinely adds value, 18. Which design pattern is described by above picture: A. Chain of Responsibility B. Command C. Mediator D. Adapter 19. Suppose we use prototype pattern to create new objects from the existing objects, if the value of the new object is changed, then the value of the original existing object: A. Will not be changed B. Will be changed C. Will be partially changed D. Sometime will be changed, and sometime not 20. Which of following represents the relationship between system and user? A. Class diagram B. User case C. Attribute. D. Status diagram.。 (i 2)。 } public static void main(String[] argv) { int i = 0。 a=a。 ()。 Cat dummy = new DummyCat()。 do{ c。 return true。amp。 } } } A. ABDCBDCB B. ABCDABCD C. ABCDBDCB D. An exception is thrown at runtime. 10. Please write some code to implement binary search algorithm( 二分查找算法 ) in JAVA language. public static int binarySearch(int[] a, int value) // search “value” in sorted ar