JAVA Eclipse "accessor" cannot be resolved to a variable
<p>I'm writing a program and I need to create accessor/mutator methods for the variable accountID.
This is what I have so far but I can't get past this "cannot be resolved to a variable" error when I create the accessor public int getAccountID(). How do I fix this error? I've looked for about an hour through other sources but none of them have helped which is why I've resorted to posting this specific question about it. Any help is appreciated.</p>

<pre><code>import java.util.Scanner;
import java.util.Date;

public class Account {
    public static void main(String[] args) {
        int accountID = 0;
        double balance = 0;
        double annualInterestRate = 0;

        Date dateCreated = new Date();

    }

    // default constructor that creates a default account
    public Account() {
        // fill this in later
    }

    // default constructor that creates an account
    public Account(int accountID, double balance, double annualInterestRate) {
        // fill this in later
    }

    // accessor for accountID
    public int getAccountID() {
        return accountID;     // THIS IS WHERE I GET MY ERROR ~*~*~*~*~*~*~*~*~*~*~*
    }
}
</code></pre>