very basic java method
<p>I am a beginner in java and am writing a stack class using array.</p>

<p>So I have a method in this class called pop</p>

<pre><code> public int Pop(){
   if (current_size &gt;0)
    { // do something 
      return ele;
     }
     // return nothing  &lt;-- ths is where error is
     }
</code></pre>

<p>Since i have the return type int.. the class is always expecting to return something.
How should I tackle such cases where the method wil return something if the condition is true else it wont shouldnt return anything?
Thanks</p>
