Comparing two time values and storing in an array
<p>I have four integers</p>

<pre><code>int minute;   int houre;  
int endHour;  int endMin; 
</code></pre>

<p>Suppose first two are <code>houre = 6 -- minute = 40 so time is 6:40</code>
Second are <code>endHour = 22  endMin = 40  so time is 22:40</code></p>

<p>Now I want to add 10 minutes and add all possible time values upto 22:40 in an array. Following is the code I am using </p>

<pre><code>while (houre &lt;= endHour &amp;&amp; minute &lt;= endMin)
            {   
              if (minute + 10 &gt;= 60)
                    houre += 1;

                minute = (minute + 10) % 60;
                Datee dat = new  Datee();
                dat.startHour = houre;
                dat.startMin = minute;
                arrayOfTime.add(dat);
             }
</code></pre>

<p>The error is at <code>minute &lt;= endMin</code> ... it ends at this condition before reaching more hours. Can anyone give me a solution. I dont know why I can't solve this small problem</p>

<p>Best Regards</p>
