template <typename ItemType>
void SortedType<ItemType>:: printFirstLast() const
{
	if (listData == NULL)
		cout << "The list is empty.\n";
	else
	{
		NodeType<ItemType>* location = listData;
		cout << "The first element is: ";
		cout << location -> info << endl;
		while (location -> next != NULL)
			location = location -> next;
		cout << "The last element is: "; 
		cout << location -> info << endl;
		cout << endl << endl;
	}
}
