// extend the LinkedList class
// add a new member function to print the list in reverse



import java.util.*;

class Linked2 extends LinkedList
 {
	public void printReverse()
	{for (int x=size()-1; x>= 0; x--)
	  {Object o = get(x);
	   System.out.println(o);
      }
    }
}