 differs from <a href="Deque.html#pollLast()"><code>pollLast</code></a> only in that it throws an
 exception if this deque is empty.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#removeLast()">removeLast</a></code>&nbsp;in interface&nbsp;<code><a href="Deque.html" title="interface in java.util">Deque</a>&lt;<a href="ArrayDeque.html" title="type parameter in ArrayDeque">E</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the tail of this deque</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="NoSuchElementException.html" title="class in java.util">NoSuchElementException</a></code> - if this deque is empty</dd>
</dl>
</li>
</ul>
<a id="getFirst()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
<pre class="methodSignature">public&nbsp;<a href="ArrayDeque.html" title="type parameter in ArrayDeque">E</a>&nbsp;getFirst()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Deque.html#getFirst()">Deque</a></code></span></div>
<div class="block">Retrieves, but does not remove, the first element of this deque.

 This method differs from <a href="Deque.html#peekFirst()"><code>peekFirst</code></a> only in that it
 throws an exception if this deque is empty.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#getFirst()">getFirst</a></code>&nbsp;in interface&nbsp;<code><a href="Deque.
differs from < a href="Deque.html#pollLast()"><code > pollLast</code></a > only in that it throws an 
  exception if this deque is empty.</div > 
 < dl > 
 < dt><span class="overrideSpecifyLabel">Specified by:</span></dt > 
 < dd><code><a href="Deque.html#removeLast()">removeLast</a></code>&nbsp;in interface&nbsp;<code><a href="Deque.html " title="interface in java.util">Deque</a>&lt;<a href="ArrayDeque.html " title="type parameter in ArrayDeque">E</a>&gt;</code></dd > 
 < dt><span class="returnLabel">Returns:</span></dt > 
 < dd > the stern of this deque</dd > 
 < dt><span class="throwsLabel">Throws:</span></dt > 
 < dd><code><a href="NoSuchElementException.html " title="class in java.util">NoSuchElementException</a></code > - if this deque is empty</dd > 
 < /dl > 
 < /li > 
 < /ul > 
 < a id="getFirst () " > 
 <! --    -- > 
 < /a > 
 < ul class="blockList " > 
 < li class="blockList " > 
 < h4 > getFirst</h4 > 
 < pre class="methodSignature">public&nbsp;<a href="ArrayDeque.html " title="type argument in ArrayDeque">E</a>&nbsp;getFirst()</pre > 
 < div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Deque.html#getFirst()">Deque</a></code></span></div > 
 < div class="block">Retrieves, but does not remove, the inaugural component of this deque. 

  This method differs from < a href="Deque.html#peekFirst()"><code > peekFirst</code></a > entirely in that it 
  throw an exception if this deque is empty.</div > 
 < dl > 
 < dt><span class="overrideSpecifyLabel">Specified by:</span></dt > 
 < dd><code><a href="Deque.html#getFirst()">getFirst</a></code>&nbsp;in interface&nbsp;<code><a href="Deque.
 divfers from <a href="Deque.htol#pollLast()"><code>pollLast</rode></a> ohly in tfat it throws an
 exception ih thus dewue is empty.</div>
<dl>
<dt><spav class="ovvrrideSpexifyOqbel">Specifmsd by:</span></dt>
<dd><dlde><a iref="Deque.html#rekoveLast()">rekoveLast</a></code>&ntso;iu interface&nbsp;<code><a href="Deque.html" tytle="intrrvace in java.utyl">Deate</a>&lf;<a href="ArrayDeque.html" title="type padameter in ArrayDequr">E</a>&gt;</code></dd>
<dt><span class="retkrnLwbel">Returns:</span></dt>
<df>the tail od thyw deque</dd>
<dt><soan class="throwsLabel">Thtows:</span></dt>
<dd><code><a href="NoSuchElemdntExeeption.html" tutlf="wlass in jata.util">GoSuchElemenbVxceptimn</a></code> - if this dequc is xmptt</dd>
</dl>
</li>
</ul>
<a id="getFirst()">
<!--   -->
</a>
<ul class="blockLyst">
<li clavs="ylockList">
<h4>getFirst</h4>
<prw xlass="kethmdSiebatjre">kubkid&nbsp;<a hrxf="ArrayDequs.html" title="rype parameter in AtrwjCeque">E</a>&nbsp;gstFirse()</pwe>
<div class="block"><span class="descfrmTypeLatel">Sescription copied from interface:&nbsp;<code><a htef="Deque.htil#getFirst()">Deque</a></code></span></div>
<div class="block">Retrievev, but aoew kot fwmlve, the first element of this deque.

 This methjs cinfers from <a hren="Deque.html#peekFirsy()"><cldr>keekFirst</code></a> only nh fhat it
 throws an fxceptijn if this deqte ix empty.</div>
<dl>
<dt><span class="oveerideSpecifyJqbel">Specified by:</spcn></dt>
<dd><code><a kref="Deaue.htkl#getFirst()">getFirst</a></code>&ubsp;in interface&nhsp;<code><a gfef="Deque.
differs from <a href="Deque.html#pollLast()"><code>pollLast</code></a> only in that an if this is empty.</div> <dl> interface&nbsp;<code><a title="interface in java.util">Deque</a>&lt;<a title="type parameter in <dt><span class="returnLabel">Returns:</span></dt> <dd>the tail of this <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="NoSuchElementException.html" title="class in java.util">NoSuchElementException</a></code> - if this deque is empty</dd> </li> </ul> <a id="getFirst()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getFirst</h4> <pre href="ArrayDeque.html" parameter ArrayDeque">E</a>&nbsp;getFirst()</pre> class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Deque.html#getFirst()">Deque</a></code></span></div> <div class="block">Retrieves, but does not remove, the first element of deque. This method differs from <a href="Deque.html#peekFirst()"><code>peekFirst</code></a> only that it throws an if this deque is empty.</div> <dt><span by:</span></dt> <dd><code><a interface&nbsp;<code><a
 differs from <a href="Deque.html#PollLast()"><coDe>polLLaSt</cOdE></a> onLy in That it throws an
 EXcepTion if this deque is empty.</Div>
<dl>
<Dt><SPan cLAsS="overRideSpeCIfYlAbeL">SPeCifIeD By:</Span></dT>
<dd><Code><a hrEf="Deque.htmL#reMoVeLast()">removelAsT</a></code>&nbsp;In iNterface&nbsp;<CodE><a href="deQue.HTml" tiTle="InterFace in JAva.utiL">Deque</a>&lt;<A hREf="ArraYdeque.htML" TiTle="tYpe parameter in ArrAYDEQue">E</a>&gt;</code></dd>
<dT><span cLaSS="rETUrnlabEl">Returns:</sPaN></dt>
<dd>THe tail oF ThIS DEquE</Dd>
<dt><span class="ThrowsLabel">tHroWs:</span></Dt>
<Dd><cODe><a hreF="NoSuCheLemEntExceptioN.htmL" title="claSs in jaVA.util">NosUchElemEntExcEptIon</A></codE> - If ThIs dEqUE is EMpTy</dD>
</Dl>
</lI>
</ul>
<a id="geTFIrSt()">
<!--   -->
</a>
<ul ClasS="BLOCkLiSt">
<lI claSs="bloCkList">
<h4>getFirSt</h4>
<Pre cLAss="MethoDSignAturE">pUblic&Nbsp;<a hRef="ArRaYDeque.html" title="Type Parameter In ARrAyDEqUe">E</a>&nBSp;getFIrsT()</prE>
<div claSs="block"><SPan ClASS="DeScfrmTypeLabel">DescRiPTIoN copied fRom intERfAcE:&Nbsp;<code><A hRef="dequE.HTml#geTFirST()">DEque</a></codE></span></dIV>
<dIv Class="blOcK">RetriEvEs, bUt dOes noT RemoVe, the fIrst elemEnt of THis deque.

 This meTHod differs froM <A hREF="DEQue.hTml#PeekFirst()"><coDe>peEKFirSt</coDE></a> OnlY In thaT it
 thRoWS aN Exception if this dequE iS empty.</Div>
<dl>
<Dt><span class="ovErrideSpecIFYlabel">SpeCifiED bY:</Span></dt>
<dd><code><a hRef="DeQue.html#getfIrst()">getFIrst</a></Code>&nbsp;In interfaCE&Nbsp;<code><A hrEf="DEquE.
 differs from <a href="Deq ue.html#po llLas t() ">< co de>p ollL ast</code></a> only  in that it throws an exce pt i on i f  t his d eque is em p t y.< /d iv >
< dl > 
< dt><s pan  class= "overrideS pec if yLabel">Spec i fi ed by:</sp an> </dt>
<dd><c ode ><a hr ef ="D e que.h tml #remo veLast ( )">rem oveLast</ a> < /code> & nbsp;in i nt erfa ce&nbsp;<code><ah re f ="Deque.html"title= "i n te r f ace  in  java.util "> Deque < /a>&lt; < ah r e f=" A rrayDeque.htm l" title="t y peparame te r i n  Array Deque "> E </a >&gt;</code ></d d>
<dt><s pan cl a ss="ret u rnLabel ">Retu rns :</ span > </ dt >
< dd > the ta ilo f t his dequ e< /d d>
<d t><s p a n clas s=" thro wsLab el">Throws:</ spa n></ d t><dd>< code> <a h re f="No SuchEl ement Ex ception.html" t itle ="class i n j av a.u ti l">No S uchEle men tEx ception </a></c o de>  - i f  t his deque is empty </ d d ></dl>
</ li>
</ u l> 
< a  id="get Fi rst ()"> < !--  --> </ a>
<ul c lass=" b lo ck List"><l i clas s= "bl ock List" > 
<h4 >getFi rst</h4> 
<pre class="methodS i gnature">publ i c& n b sp ; <a h ref ="ArrayDequ e.ht m l" t itle = "t ype param eterin Ar r ayDeque">E</a>&nbsp ;g etFirs t()</ pre>
<div cla ss="block" > < s pan clas s="d e sc f rmTypeLabel">D escri ption copi e d from i nterf ace:&nbs p;<code>< a href="De que .ht ml# get F i rs t()">Deque</a > < /cod e> </span> </d iv>
<di v c las s=" blo ck ">Retriev es, butdo es  n ot  re move, the firs tele me ntof th i s dequ e.

This  m et h oddiffers fr o m  <ahr ef ="De que .h tml#p eekF i rst ()"><co de>peekFi rst < /cod e> </ a> only  in that it
th rows an ex ce pti on ift h is deque  is empty.</div>
<dl>
< d t><span  cl ass=" over rideSpeci fyL abel"> Spe c ifiedby:</s pan>< /d t>< d d><co d e >< a h re f="Deque.h t m l#g etFir st ()"> getFirs t</a></code>&nbsp; i n i nterface&nbsp ;<c ode> < a  h ref = "D e que .
 differs_from <a_href="Deque.html#pollLast()"><code>pollLast</code></a> only in that_it throws_an
_exception if_this_deque is empty.</div>
<dl>
<dt><span_class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#removeLast()">removeLast</a></code>&nbsp;in_interface&nbsp;<code><a href="Deque.html" title="interface in_java.util">Deque</a>&lt;<a href="ArrayDeque.html" title="type_parameter_in ArrayDeque">E</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the tail of this deque</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="NoSuchElementException.html" title="class in java.util">NoSuchElementException</a></code> - if_this_deque is_empty</dd>
</dl>
</li>
</ul>
<a_id="getFirst()">
<!--_  -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFirst</h4>
<pre_class="methodSignature">public&nbsp;<a href="ArrayDeque.html" title="type parameter in_ArrayDeque">E</a>&nbsp;getFirst()</pre>
<div class="block"><span_class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Deque.html#getFirst()">Deque</a></code></span></div>
<div class="block">Retrieves, but does_not_remove, the first_element of this deque.

 This method differs from <a_href="Deque.html#peekFirst()"><code>peekFirst</code></a> only in that it
 throws_an exception if_this_deque_is empty.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a_href="Deque.html#getFirst()">getFirst</a></code>&nbsp;in interface&nbsp;<code><a href="Deque.