Bonus Quiz for Quiz 2 Alternative Solution

Bonus Quiz for Quiz - ContactNode last = last delete(last insertAfter(middle last delete(middle add(last}

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 public void swapMiddleAndTail(){ if(size() == 0 || size() == 1) return ContactNode middle = getMiddle()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ContactNode last = last() delete(last) insertAfter(middle, last) delete(middle) add(last) }...
View Full Document

This note was uploaded on 01/30/2010 for the course CS 1316 taught by Professor Staff during the Spring '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online