Boolean and for loop JAVA
<pre><code>int a=25: 
for (double i=1;i&lt;=a;i++) 
{
    int b=5*i; 
    boolean value= b==a; 
    System.out.println(value);
 }
</code></pre>

<p>This method is true when i=5 but false otherwise. So the value can be true at i=5 but my program will print for me : false-false-false-false-TRUE-false-false-false... how can I make this program to print just TRUE for me. PS: I know that false or false or TRUE or false = True.. but how can I use it in the for loop?</p>
