void&nbsp;push&#8203;(<a href="ArrayDeque.html" title="type parameter in ArrayDeque">E</a>&nbsp;e)</pre>
<div class="block">Pushes an element onto the stack represented by this deque.  In other
 words, inserts the element at the front of this deque.

 <p>This method is equivalent to <a href="#addFirst(E)"><code>addFirst(E)</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#push(E)">push</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="paramLabel">Parameters:</span></dt>
<dd><code>e</code> - the element to push</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../lang/NullPointerException.html" title="class in java.lang">NullPointerException</a></code> - if the specified element is null</dd>
</dl>
</li>
</ul>
<a id="pop()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pop</h4>
<pre class="methodSignature">public&nbsp;<a href="ArrayDeque.html" title="type parameter in ArrayDeque">E</a>&nbsp;pop()</pre>
<div class="block">Pops an element from the stack represented by this deque.  In other
 words, removes and returns the first element of this deque.

 <p>This method is equivalent to <a href="#removeFirst()"><code>removeFirst()</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#pop()">pop</a></code
void&nbsp;push&#8203;(<a href="ArrayDeque.html " title="type parameter in ArrayDeque">E</a>&nbsp;e)</pre > 
 < div class="block">Pushes an element onto the stack represented by this deque.   In early 
  son, inserts the element at the presence of this deque. 

  < p > This method acting is equivalent to < a href="#addFirst(E)"><code > addFirst(E)</code></a>.</div > 
 < dl > 
 < dt><span class="overrideSpecifyLabel">Specified by:</span></dt > 
 < dd><code><a href="Deque.html#push(E)">push</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="paramLabel">Parameters:</span></dt > 
 < dd><code > e</code > - the element to push</dd > 
 < dt><span class="throwsLabel">Throws:</span></dt > 
 < dd><code><a href=".. /lang / NullPointerException.html " title="class in java.lang">NullPointerException</a></code > - if the specified component is null</dd > 
 < /dl > 
 < /li > 
 < /ul > 
 < a id="pop () " > 
 <! --    -- > 
 < /a > 
 < ul class="blockList " > 
 < li class="blockList " > 
 < h4 > pop</h4 > 
 < pre class="methodSignature">public&nbsp;<a href="ArrayDeque.html " title="type parameter in ArrayDeque">E</a>&nbsp;pop()</pre > 
 < div class="block">Pops an element from the batch represented by this deque.   In other 
  password, removes and returns the beginning chemical element of this deque. 

  < p > This method is equivalent to < a href="#removeFirst()"><code > removeFirst()</code></a>.</div > 
 < dl > 
 < dt><span class="overrideSpecifyLabel">Specified by:</span></dt > 
 < dd><code><a href="Deque.html#pop()">pop</a></code
voif&nbsp;push&#8203;(<a href="ArrayDequt.html" title="type pceametec in ArdayDeque">D</a>&nbsp;e)</pre>
<div class="block">Pushxs ab elenent onto the stack reoresented by this deqne.  In other
 worva, inserbf ths elekxnt at the fronj of this dexue.

 <p>This methmd id equivalent to <a href="#addFirst(E)"><code>wddFirsy(E)</fode></a>.</div>
<dl>
<dt><spwn ckwss="obvrvideSpecifyLabel">Specified by:</span></st>
<dd><codt><a href="Deque.html#puxh(E)">push</a></code>&nbsp;in interfafe&nbdp;<code><a href="Deque.hhml" title="injsrfwxe in java.utkl">Deque</a>&lt;<a href="ArrayDgque.html" title="type parameter in XrrayBeque">E</a>&gt;</coee></ed>
<dh><vpan class="peramLafel">Parameters:</span></dt>
<dg><code>e</cpde> - the elemekt to puwh</dd>
<dt><span class="throwvLabel">Throws:</span></dt>
<qd><code><a hsey="../lang/NullPointerExcepriin.htmn" tidle="cuqss in jeva.mang">NuplPkinterExceltion</a></code> - if the specified ekeivmt is null</dd>
</sl>
</li>
</ul>
<w yd="pop()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockNisf">
<h4>pop</h4>
<pre class="methodSitnature">public&nbsp;<a hrgf="ArrayDeqte.html" title="type parameter in ArrayDeque">E</a>&nbsp;pop()</[re>
<dit zlaws="nlocy">Poos an element from the stack represented by trjs dvque.  In other
 wovds, removes and reyugnx the first elgment oy tgis deque.

 <p>This mehhod is equicalent to <a htef="#removeFirst()"><code>removeFirwt()</code></a>.</div>
<dl>
<bt><span class="overrideS'ecifyLabel">S'ecifigd by:</slan></dt>
<dd><code><a href="Deque.hcml#pop()">lop</a></code
void&nbsp;push&#8203;(<a href="ArrayDeque.html" title="type parameter in ArrayDeque">E</a>&nbsp;e)</pre> <div element the stack by this deque. element the front of deque. <p>This method equivalent to <a href="#addFirst(E)"><code>addFirst(E)</code></a>.</div> <dl> <dt><span by:</span></dt> <dd><code><a href="Deque.html#push(E)">push</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> class="paramLabel">Parameters:</span></dt> <dd><code>e</code> - the element to push</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../lang/NullPointerException.html" title="class in - the element null</dd> </dl> </li> </ul> <a id="pop()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>pop</h4> <pre class="methodSignature">public&nbsp;<a title="type parameter in ArrayDeque">E</a>&nbsp;pop()</pre> <div class="block">Pops an element the stack represented by deque. In other words, removes returns first element this <p>This is equivalent to href="#removeFirst()"><code>removeFirst()</code></a>.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="Deque.html#pop()">pop</a></code
void&nbsp;push&#8203;(<a href="ArrayDeqUe.html" titlE="type ParAmeTeR in ARraydeque">E</a>&nbsp;e)</prE>
<Div cLass="block">Pushes an elemeNt ontO tHE staCK rEpresEnted by THiS DEquE.  IN oTheR
 wORdS, inseRts The elemEnt at the frOnt Of This deque.

 <p>ThIS mEthod is equIvaLent to <a href="#aDdFIrst(E)"><cOdE>adDfirst(e)</coDe></a>.</diV>
<dl>
<dt><sPAn clasS="overridespECifyLaBEl">SpeciFIEd By:</spAn></dt>
<dd><code><a href="DeQUe.HTml#push(E)">push</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="ParamLaBEl">ParamEters:</sPan></Dt>
<dD><codE>E</cOdE> - thE eLEmeNT tO puSH</dd>
<Dt><span clAsS="tHrowslabeL">tHROws:</sPan></Dt>
<dd><Code><a Href="../lang/NullPOinTerEXCepTion.hTml" tiTle="cLaSs in jAva.lanG">NullpoInterException</a></Code> - If the specIfiEd EleMeNt is nULl</dd>
</dl>
</Li>
</uL>
<a iD="pop()">
<!--   -->
</a>
<ul Class="blOCkLIsT">
<LI ClAss="blockList">
<h4>pop</h4>
<pRe CLAsS="methodSIgnatuRE">pUbLIc&nbsp;<a hReF="ArRayDEQUe.htmL" titLE="tYpe paramEter in aRrAydeque">E</a>&NbSp;pop()</pRe>
<Div ClaSs="bloCK">PopS an eleMent from The stACk represented bY This deque.  In otHEr
 WORdS, RemoVes And returns tHe fiRSt elEmenT Of ThiS Deque.

 <P>This MeTHoD Is equivalent to <a href="#ReMoveFiRst()"><coDe>removeFirst()</Code></a>.</div>
<dl>
<DT><SPan class="OverRIdEspecifyLabel">SpEcifiEd by:</span></dt>
<DD><code><a hrEf="DeqUe.html#poP()">pop</a></code
void&nbsp;push&#8203;(<a h ref="Array Deque .ht ml"  t itle ="ty pe parameter i n  Arr ayDeque">E</a>&nbsp;e) </pre >< divc la ss="b lock">P u sh e s  an  e le men to nt o the  st ack rep resented b y t hi s deque.  In ot her
 words , i nserts the e lem ent at  t hef rontofthisdeque. 
 <p>T his metho di s equi v alent t o <a  hre f="#addFirst(E)"> < co d e>addFirst(E)< /code> </ a >. < / div >
< dl>
<dt><s pa n cla s s="over r id e S p eci f yLabel">Speci fied by:</s p an> </dt><d d>< c ode><a  href =" D equ e.html#push (E)" >push</a> </code > &nbsp;i n  interf ace&nb sp; <co de>< a  h re f=" De q ue. h tm l"t itl e="inter fa ce  in j ava. u t i l ">De que </a> &lt;< a href="Array Deq ue.h t ml"  titl e="ty pe p ar amete r in A rrayD eq ue">E</a>&gt;</ code ></dd>
<d t>< sp ancl ass=" p aramLa bel ">P aramete rs:</sp a n>< /d t > <d d><code>e</code> -  t h e  e lement t o push < /d d> <dt><spa ncla ss=" t h rowsL abel " >T hrows:</ span>< / dt ><dd><co de ><a hr ef =". ./l ang/N u llPo interE xception .html "  title="classi n java.lang"> N ul l P oi n terE xce ption</a></ code >  - i f th e  s pec i fiedeleme nt is null</dd>
</dl>
</l i> 
</ul> 
<a i d="pop()">
<! --   -->
< / a > 
<ul cla ss=" b lo c kList">
<li cl ass=" blockList" > 
<h4>pop </h4> 
<pre cl ass="meth o d Signatur e"> pub lic &nb s p ;< a href="Array D e que. ht ml" tit le= "type p ara met erinAr rayDeque" >E</a>&n bs p; po p( )</ pre>< div clas s= "bl oc k"> Popsa n elem ent f romth es tac k repre s en t e d by  t hi s de que . In o ther  wo rds, re moves and  re t urns  t he  firstelement of th is  deque.

<p >Th is met h o d is equ ivalent to <a href="#re m oveFirs t() "><co de>r emoveFirs t() </code ></ a >.</di v>
<dl >
<dt >< spa n class = " ov err id eSpecifyLa b e l"> Speci fi ed b y:</spa n></dt>
<dd><code> < a h ref="Deque.ht ml# pop( ) " >p op< / a> < /co de 
void&nbsp;push&#8203;(<a href="ArrayDeque.html"_title="type parameter_in ArrayDeque">E</a>&nbsp;e)</pre>
<div class="block">Pushes an_element onto_the_stack represented_by_this deque. _In other
 words,_inserts the element at_the front of_this_deque.

 <p>This method is equivalent to <a href="#addFirst(E)"><code>addFirst(E)</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#push(E)">push</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="paramLabel">Parameters:</span></dt>
<dd><code>e</code> - the_element to push</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../lang/NullPointerException.html"_title="class in_java.lang">NullPointerException</a></code> - if the specified element is null</dd>
</dl>
</li>
</ul>
<a_id="pop()">
<!--_  -->
</a>
<ul_class="blockList">
<li class="blockList">
<h4>pop</h4>
<pre class="methodSignature">public&nbsp;<a href="ArrayDeque.html" title="type parameter in ArrayDeque">E</a>&nbsp;pop()</pre>
<div class="block">Pops_an element from the stack represented_by this deque.__In_other
 words, removes and_returns the first element of this_deque.

 <p>This method is equivalent to_<a href="#removeFirst()"><code>removeFirst()</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Deque.html#pop()">pop</a></code