error: cannot be resolved to a type
<pre><code>    import java.util.*;

    class AddressBook {
</code></pre>

<p>private static final int DEFAULT_SIZE = 25;
 private Person[] entry;   //getting error - cannot be resolved to a type</p>

<p>public AddressBook() {
  this( DEFAULT_SIZE);</p>

<p>}</p>

<p>public AddressBook(int size) {
  if (size &lt;= 0) {
   throw new IllegalArgumentException("Size must be positive");</p>

<p>}</p>

<p>entry = new Person[size];  // cannot be resolved to a type</p>

<p>System.out.println("array of " + size + " is created");
 }
     }</p>

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

     class TestAddressBook {
     public static void main(String args[]) {
</code></pre>

<p>AddressBook myBook;
  String inputStr;
  int size;</p>

<p>Scanner scanner = new Scanner(System.in);</p>

<p>while(true) {
   System.out.print("array size: " );
   inputStr = scanner.next();</p>

<p>if (inputStr.equalsIgnoreCase("stop")) {
    break;
   }
   size = Integer.parseInt(inputStr);</p>

<p>try {
    myBook = new AddressBook(size);</p>

<p>}
   catch (IllegalArgumentException e) {</p>

<p>}
   System.out.println("Exception thrown: size = " + size);
  }
     }</p>

<pre><code>     }
</code></pre>

<p>I can't figure out what type I am supposed to use with the array to get everything to work properly.</p>

<pre><code>  private Person[] entry;   //getting error - cannot be resolved to a type
    ....
    entry = new Person[size];  // cannot be resolved to a type
</code></pre>
