11.07.2015 Views

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sec. 4.1 Lists 99public void moveToStart() { curr = 0; } // Set to frontpublic void moveToEnd() { curr = listSize; } // Set <strong>at</strong> endpublic void prev() { if (curr != 0) curr--; } // Back uppublic void next() { if (curr < listSize) curr++; }/** @return List size */public int length() { return listSize; }/** @return Current position */public int currPos() { return curr; }/** Set current list position to "pos" */public void moveToPos(int pos) {assert (pos>=0) && (pos=0) && (curr

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!