title: am getting an error as the field is not visible
body: <p>my intention is to print "FINE IS IMPOSED" in the output, if the balance available is less than the Minimum Balance.
  but am getting error as mentioned below.
  pl. help me out  </p>
  
  <pre><code>//Savings Account of a customer by setting and getting MinimumBalance
  public class SavingsAccount {
      private int    AccountNumber;
      private String Customer;
      private double Balance;
      private double MinimumBalance;
  
      /**
       * constructor
       *
       * @param Number
       *         the account's number.
       * @param Name
       *         the account holders name.
       * @param bal
       *         the balance available.
       */
      public void open(int Number, String Name, double bal) {
          AccountNumber = Number;
          Customer = Name;
          Balance = bal;
      }
  
      /**
       * sets Minimum Balance
       *
       * @param minbal
       *         the Minimum Balance
       */
      public void setMinimumBalance(int minbal) {
          MinimumBalance = minbal;
      }
  
      /**
       * returning Minimum Balance
       *
       * @return it is returning Minimum Balance
       */
      public double getMinimumBalance() {
          return MinimumBalance;
      }
  
      /**
       * display the details of savings account
       */
      public void print() {
          System.out.println("The Account Number is:" + (AccountNumber));
          System.out.println("The name of the Customer is :" + (Customer));
          System.out.println("Available balance is :" + (Balance));
          System.out.println("Minimum Balance to be maintained is :"
          (MinimumBalance));
      }
  }
  
  // testing of savings account
  public class Savings1 {
      public static void main(String[] args) {
          SavingsAccount S1; //Object Reference
          S1 = new SavingsAccount(); //Creating Object
          S1.open(256101, "Mr.Gates ", 5000);
          S1.setMinimumBalance(6000);
          S1.print();
          if (S1.Balance &lt; S1.getMinimumBalance()) {
              System.out.println("FINE IS IMPOSED");
          }
      }
  }
  </code></pre>
  
  <p>error : Exception in thread "main" java.lang.Error: Unresolved compilation 
          problem: 
   The field SavingsAccount.Balance is not visible
  at Savings1.main(Savings1.java:9)</p>