public void replace(int p, String s) { first(); p--; for (int i = p; i >= 0; i--) { down(); } DLLNode temp = new DLLNode(s); temp = cursor; temp.data = s; }