How to create class instances based on user input
<p>I have 3 instances of a class being created in another class.</p>

<pre><code>Customer kyle = new Customer(true,false,false,"Kyle",1000.00);
Customer andrew = new Customer(false,true,false,"Andrew",0.00);
Customer connor = new Customer(false,false,true,"Connor",5000.00);
</code></pre>

<p>Here is the constructor if you need to see it.</p>

<pre><code>public Customer(boolean regular, boolean payAhead, boolean loyal, String userName, double amountOfStorage) {
    this.regular = regular;
    this.payAhead = payAhead;
    this.loyal = loyal;
    this.userName = userName;
    this.amtOfStore = amountOfStorage;
}
</code></pre>

<p>The user will input one of the three usernames through a jTextField. How do I take there input and have it choose what instance of the class will run? currently I have: </p>

<pre><code>if (usernameInputField.getText().equals(kyle.getUserName())
            || usernameInputField.getText().equals(andrew.getUserName())
            || usernameInputField.getText().equals(connor.getUserName())){
}
</code></pre>

<p>But I don't know what should go into the <code>if</code> statement. </p>