public void replaceWithLargerNeighbor()
    {

        // TODO: Replace all but the first and last elements with the larger of its to neighbors
    	if (list.size() == 0)
    	{
    	}
    	else
    	{
	    	for (int i = 1; i < list.size()-1; i++)
	    	{
	    		String current = list.get(i);
	    		String prev = list.get(i-1);
	    		String next = list.get(i+1);
	    		if (current.compareTo(prev) < 0)
	    		{
	    			list.set(i, prev);
	    			current = list.get(i);
	    		}
	    		if (current.compareTo(next) < 0)
	    		{
	    			list.set(i, next);
	    		}
	    	}
    	}
    }