CS134RefSheetW08

CS134RefSheetW08 - CS 134 Midterm Exam Reference Sheet...

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

View Full Document Right Arrow Icon
CS 134 Midterm Exam Page 1 of 2 3-March-2008 7:00-9:00 p.m. CS 134 Midterm Exam Reference Sheet Selected Interfaces and Classes The following interfaces and classes are available in this reference sheet: Character, DataFactory , DoubleNode, Integer , ListInterface , Node , Object , QueueInterface and StackInterface . They are listed in alphabetical order. Character Class public Character (char value); // post: constructs wrapper object to hold value public char charValue (); public boolean equals (Object obj); // post: compares this object against the specified object // post: returns the value of this Character Object DataFactory Class public static ListInterface makeList (); // post: returns an empty list public static QueueInterface makeQueue (); // post: returns an empty queue public static StackInterface makeStack (); // post: returns an empty stack DoubleNode Class public DoubleNode (Object newItem); // post: this contains newItem, no Node follows nor // precedes this public DoubleNode (Object newItem, DoubleNode nextNode); // post: this contains newItem and is followed by // nextNode but no node precedes this public DoubleNode (Object newItem,
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

CS134RefSheetW08 - CS 134 Midterm Exam Reference Sheet...

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