- 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: 1218
Latest pastes
1 days ago
1 days ago
2 days ago
4 days ago
5 days ago