title: I am getting a error:cannot find symbol when compiling
body: <p>I am trying to calculate and round up with an IF statement, the code is below. The error comes on the line:    if (partterms &lt; 6)</p>
  
  <pre><code>   // Setup Array List for Course CU
          ArrayList&lt;Double&gt; coursecu = new ArrayList&lt;Double&gt;();
    // Read inputs for Course Units and Sum the Value
          System.out.println("Please enter Individual Course CU values, Q to quit:");
          Scanner in2 = new Scanner(System.in);
          while (in.hasNextDouble())
          {
              coursecu.add(in.nextDouble());
          } 
          double sum = 0;
          for(int i = 0; i &lt; coursecu.size(); i++)
          {
              sum = sum + coursecu.get(i);
          }
          System.out.println();
          System.out.println("Total Credit Units Required for Graduation");
          System.out.println(sum);
    // Calculate the Number of Terms to Completion
         {
            double fullterm = sum / planned_units; // Sets Whole Terms 
            double partterm = sum % planned_units; // Sets Partial Terms
          }
          if (partterm &lt; 6)
          {
              number_terms = fullterms++;
          }
          else
          {
              number_terms = fullterms;
          }
  </code></pre>