- public void reverse()
- {
- dllintnode temp;
- dllintnode current;
- dllintnode val;
- currentpos = front; // the head of the list
- temp = null;
- val = null;
- while(currentpos != null)
- {
- temp = currentpos.getNext();
- val.setBack(currentpos);
- val = currentpos;
- currentpos = temp;
- }
- }

By: Guest | Date: Dec 9 2009 02:53 | Format: None | Expires: never | Size: 300 B | Hits: 1242
Latest pastes
1 hours ago
1 hours ago
1 hours ago
3 hours ago
6 hours ago