final-sample-4-key

final-sample-4-key - CSE 143 Sample Final Exam#4 Key 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSE 143 Sample Final Exam #4 Key 1. Statement Output var1.method1(); var2.method1(); var3.method1(); var1.method2(); var2.method2(); var3.method2(); var4.method2(); var5.method2(); var6.method2(); var1.method3(); var2.method3(); var3.method3(); ((Nose) var5).method3(); ((Eye) var1).method1(); ((Eye) var4).method1(); ((Nose) var1).method3(); ((Mouth) var4).method1(); ((Ear) var5).method3(); ((Eye) var6).method3(); ((Mouth) var4).method2(); Nose 1 Eye 1/Mouth 1 Eye 1/Mouth 1 Mouth 2/Nose 1 Ear 2 Mouth 2/Eye 1/Mouth 1 error Mouth 2/Nose 1 Ear 2 error Ear 3 error Nose 3 Nose 1 error Nose 3 Mouth 1 error error Mouth 2/Mouth 1 2. public class HistoryList extends ArrayIntList implements Comparable<HistoryList> { private List<String> history; public HistoryList() { this(DEFAULT_CAPACITY); } public HistoryList(int capacity) { super(capacity); history = new ArrayList<String>(); history.add(toString()); } public void add(int index, int value) { // the other add method calls this one, super.add(index, value); super....
View Full Document

  • Winter '09
  • Star Wars Episode IV: A New Hope, Star Wars Episode VI: Return of the Jedi, Jabba the Hutt, int index, C-3PO, return new IntTreeNode

{[ snackBarMessage ]}

Page1 / 3

final-sample-4-key - CSE 143 Sample Final Exam#4 Key 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online