Getting value to display for Java CurrentAccount class
<pre><code>package bankAccount;

public class CurrentAccount {

        int account[];
        int lastMove;
        int startingBalance = 1000;

        CurrentAccount() {
            lastMove = 0;
            account = new int[10];
        }

        public void deposit(int value) {
            account[lastMove] = value;
            lastMove++;
        }

        public void draw(int value) {
            account[lastMove] = value;
            lastMove++;
        }

    public int settlement() {
           int result = 0;
           for (int i=0; i&lt;account.length; i++) {
                  result = result + account[i] + startingBalance;

                  System.out.println("Result = " + result);

           }

           return result;

    }

    public static void main(String args[]) {
                 CurrentAccount c = new CurrentAccount();
                  c.deposit(10);



        }
    }
</code></pre>

<p>At the moment, when I run the class, the expected System.out.println does not appear, and if I simply move public static void main(String[] args) to the top, this generates multiple red points.  What is the best way for me to refactor my code so it works in the expected way?</p>
