title: Cannot convert double to boolean (noob here)
body: <p>This is my algorithm, and my goal here is to set an "if statement". Take a look:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class apple {
      public static void main(String args[]) {
          System.out.println("This is occurring right now");
  
          for (float ind = 0; ind &lt;= 0.50; ind += 0.1) {
              System.out.println(ind);
          }
  
          double find;
          if (find = 0.25);
  </code></pre>
  
  <p>At last line, it says "I cannot convert double to boolean".<br>
  How should I proceed? (I'm a begginer with little time to finish this assignment, like today)</p>
  
  <hr>
  
  <p>Okay, I looked all of your tips and came up with that:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class apple {
  
      public static void main(String args[]) {
          System.out.println("this is occouring right now");
  
          for (float ind = 0; ind &lt;= 0.50; ind += 0.1) {
              System.out.println(ind);
          }
  
          double find = 0;
          if (find == 0.25) {
              System.out.println("Group A has been Warned");
          } else if (find == 0.30) {
              System.out.println("Group A and B need to shut down");
          } else if (find == 0.40) {
              System.out.println("All Groups (A, B and C) need to shut down");
          }
      }
  }
  </code></pre>
  
  <p>I thought that by setting the <code>if</code> statement there, it would show me the warnings when it runs.</p>
  
  <p>How do I call again what's being typed inside <code>System.out.println()</code>?<br>
  I'm always calling print-outs... What now?</p>
  
  <hr>
  
  <p>tweaked</p>
  
  <pre><code> import java.util.Scanner;
  
  public class apple {
  public static void main(String args []) {
      Scanner dic = new Scanner(System.in);
      System.out.println("type the rate: ");
      for (double ind=dic.nextDouble(); ind &lt;=0.50; ind+=0.1){
  
          // include my variables
  
          if (ind == 0.2){
          System.out.println("Group A has been Warned");
  
      }else if (ind == 0.3){
          System.out.println("Group A and B need to shut down");
      }else if (ind == 0.4){
          System.out.println("All Groups (A, B and C) need to shut down");
      }
  }
  }
  }
  </code></pre>
  
  <p>i guess im going into the right direction with that one. donno. the thing is, I typed 0.2 and it showed two warnings. It should show only one. I suppose. </p>