title: Cannot convert from int[] to int?
body: <p>im new to programming in general, I've been trying to build a system in java for my comp sci course and I'm getting the error "cannot convert from int[] to int" in eclipse.</p>
  
  <pre><code>public static ArrayList&lt;Book&gt; CreateBooksArrayList(){
      int[] id = {1,2,3,4,5};
      String[] bookTitle = {"book1", "book2", "book3", "book4", "book5"};
      String[] authorName = {"author1", "author2", "author3", "author4", "author5"};
      double[] bookReleaseYear = {123,456,789,987,654};
      int[] numOnLoan = {1,2,2,3,4};
      int[] numInStock = {5,5,5,5,5};
  
  
      int bID = -1;
      String bTitle = null;
      String aName = null;
      double bRelease = -1;
      int nLoan = -1;
      int nStock = -1;
  
      ArrayList&lt;Book&gt; Books = new ArrayList&lt;Book&gt;();
      for (int i = 0; i&lt;6; i++){
          bID = id[i];
          bTitle = bookTitle[i];
          aName = authorName[i];
          bRelease = bookReleaseYear[i];
          nLoan = numOnLoan;
          nStock = numInStock;
          Books.add(new Book(bID, bTitle, aName, bRelease, nLoan, nStock));
  </code></pre>
  
  <p>I've tried searching for an answer, but i cant seem to find any links with this exact problem. Thanks in advance for any help!</p>