title: Error: reached end of file while parsing
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>Error: reached end of file while parsing</p>
  </blockquote>
  
  <p>I know it means I need to close the curly bracket somewhere, but I have tried everything. I figured line 45 is the brace that needs to be closed, but I'm not sure how. This is a program for helping find the smallest number of coins needed to make the integer inputted by the user. For example, <code>37</code> would yield 2 Quarters, 1 Dime, and 2 pennies.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import java.util.Scanner;
  public class Change {
   public static void main(String[] args){
  
    Scanner sc = new Scanner (System.in);
  Int n = sc.nextInt("Enter a positive integer" );
    int number1, number2; // Division operands
        int quotient;         // Result of division
  
   {if (QtrCnt &gt; 0)
  
   if (QtrCnt &gt; 1)
   System.out.println(QtrCnt + " quarters");
   else
   System.out.println(QtrCnt + " quarter");
  }
  if (DimeCnt &gt; 0)
  {
  if (DimeCnt &gt; 1)
  System.out.println(DimeCnt + " dimes");
  else
  System.out.println(DimeCnt + " dime");
  }
  if (NicklCnt &gt; 0)
  {
  if (NicklCnt &gt; 1)
  System.out.println(NicklCnt + " nickles");
  else
  System.out.println(NicklCnt + " nickle");
  }
  if (PennyCnt &gt; 0);
  {
  if (PennyCnt &gt; 1);
  System.out.println(PennyCnt + " pennies");
  System.out.println(PennyCnt + " penny");
  }
  
  int q = 25;
  int d = 10;
  int n = 5;
  int p = 1;
  if (a &lt; 0);
  
  System.out.println("ERROR");
  {
   String (money &gt;=25); { int numQuarters = money/ 25; }
   money -= numQuarters * 25;
   QtrCnt = (num1 - num1 % 25) / 25;
   num1 = num1 - QtrCnt * 25;
  
    String(money &gt;=10); { int numDimes = money/ 10; }
   money -= numDimes * 10;
   DimeCnt = (num1 - num1 % 10) / 10;
  num1 = num1 - DimeCnt * 10;
  
     String (money &gt;=5); { int numNickles = money/ 5; }
    money -= numNickles * 5;
    NicklCnt = (num1 - num1 % 5) / 5;
  num1 = num1 - NicklCnt * 5;
  
      String (money &gt;=1); { int numPennies = money/ 1; }
    money -= numPennies * 1;
    PennyCnt = (num1 - num1 % 1) / 1;
  num1 = num1 - PennyCnt * 1;
  }
     }</code></pre>
  </div>
  </div>
  </p>