| CIT594 First Quiz Fall, 2003 |
Name_________________________________________ |
Please answer all questions briefly and to the point. You have plenty of room for correct answers.
Part I: Eclipse (30 points)
Rename... is one refactoring provided by Eclipse.
Name another.assertEquals(___,
___), which object should be first?assert..."
test methods (other than assertEquals).setUp() method used for?(), ((())), and (()(())). Unbalanced
strings should be rejected. You can assume the strings contain no other characters
but parentheses.Set |
TreeSet |
Iterator |
Stack |
Comparator |
Comparable |
Collections
interface.Iterator interface.| (best) |
|
(worst)
|
static int getIt(int[] a) {
int target = a[0];
for (int i = 1; i < a.length; i++) {
if (a[i] > target) return i;
}
return -1;
}

public BinaryTree copyTree(BinaryTree bt) {
if (bt == null) return null;
}
Set methods corresponding to: