- 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;
- }
- }
Undefined
By: Guest | Date: Dec 9 2009 02:53 | Format: None | Expires: never | Size: 300 B | Hits: 1222
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago