int a=25:
for (double i=1;i<=a;i++)
{
int b=5*i;
boolean value= b==a;
System.out.println(value);
}
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?