title: Using ArrayList<Book> to store book titles
body: <p>I am working on a homework assignment and have not been able to figure out what I've done wrong.</p>
  
  <p>I am trying to create a list of book titles using ArrayList</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>import java.awt.print.Book;
  import java.util.ArrayList;
  public class Books {
  
      public static void main (String[] args){
  
          ArrayList&lt;Book&gt; bookTitle = new ArrayList&lt;Book&gt;();
  
  
          bookTitle.add ("Book title 1");
          bookTitle.add ("Book title 2");
          bookTitle.add ("Book title 3");
  
          System.out.println("Size of Book list: " + bookTitle.size());
  
      }
  
  }
  </code></pre>
  
  <p>This code gives me the following error on the three bookTitle.add lines:
  "The Method add(Book) in the type ArrayList is not applicable for the arguments (String)"</p>
  
  <p>So then I tried this:</p>
  
  <pre><code>Book book1 = new Book("Book title");
          bookTitle.add (book1);
  </code></pre>
  
  <p>This gave me a "The constructor Book(String) is undefined" error.</p>
  
  <p>Please keep in mind I'm a noob at Java so I'm probably doing some very basic error and not realizing it.</p>
  
  <p>I greatly appreciate your help and time.</p>