title: How can i use field inside method?
body: <p>to begin with, this is my first question in here. </p>
  
  <p>I want to use double <em>mebleg</em> inside <em>transfer</em> method, and I has equaled <em>mebleg</em> to <em>balance</em> in constructor, but unfortunately, the amount of parameter of balance doesn't go with mebleg into <strong>transfer</strong> method. how can I solve this problem?</p>
  
  <p>I am new at programming. that's why if my question was answered, could you suggest that links of answers?</p>
  
  <pre><code>class Acount {
  
      static double mebleg;
  
      public static void main(String[] args) {
          Acount a = new Acount(100);
          Acount b = new Acount(0.0);
          Acount c = new Acount(0.0);
          Acount.transfer(a, b, 50);
          Acount.transfer(b, c, 25);
  
      }
  
      public Acount(double balance) {
          mebleg = balance;
      }
  
      public static void transfer(Acount from, Acount to, double howMuch) {
          System.out.println(Acount.mebleg - howMuch);
  
      }
  
  }
  </code></pre>