title: how to output the book's title, author, and show the bookID seperately?
body: <p>I'm a new java learner. Now I need to set the <code>bookID</code> from 1000, and according to the total number of input IDs, book author, and book title, respectively show the book's information.
  For example, when users enter 2, The Lord of the Rings; J. R. R. Tolkien;  The Hunger Games; Suzanne Collins;
  The output is Book ID: 1000 Title: The Lord of the Rings Author: J. R. R. Tolkien  Status: Available Book ID: 1001 Title: The Hunger Games Author: Suzanne Collins Status: Available.</p>
  <p>I have completed part of the programming, but now I do not how to write the code in the BOOK[] array.</p>
  <p>code:</p>
  <pre><code>import java.util.Scanner;
  
  class Book{
  
      private Integer bookID = 1000;
      static Integer nextID;
      private String title;
      private String author;
      private boolean isBorrowed;
      
      public Book(String title, String author){
          this.title = title;
          this.author = author;
          this.isBorrowed = false;
          this.nextID = bookID++;
      }
      
      public void borrowBook(){
          isBorrowed = true;
      }
      
      public void returnBook(){
          isBorrowed = false;
      }
      
      public boolean isBookBorrowed(){
          return isBorrowed;
      }
      
      public void show() {
          System.out.println(&quot;Book ID: &quot; + bookID);
          System.out.println(&quot;Title: &quot; + title);
          System.out.println(&quot;Author: &quot; + author);
          System.out.print(&quot;Status: &quot;);
          if (isBorrowed)
              System.out.println(&quot;Not Available&quot;);
          else
              System.out.println(&quot;Available&quot;);
          System.out.println();
      }
  }
  
  public class MyClass {
  
      public static void main(String args[]) {
         Scanner input=new Scanner(System.in);
         int num=input.nextInt();
         input.nextLine();
         
         Book[] books = new Book[num];
         String title;
         String author;
         for (int i=0; i&lt;num; i++) {
             books[i] =input.nextBook();
             title = input.nextLine();
             author = input.nextLine();
                 
         }
      }
  }
  </code></pre>
  <p>The following is my programming code, please help me see how to write the code of the array part, thank you very much!</p>