title: Arrays with different datatypes i.e. strings and integers. (Objectorientend)
body: <p>For example I have 3 books:
  <code>Booknumber (int)</code>, <code>Booktitle (string)</code>, <code>Booklanguage (string)</code>, <code>Bookprice (int)</code>.</p>
  
  <p>Now, I want to have an array called <code>books[3][4]</code>.  I'm getting the data I set via <code>setBooknumber</code> like this:<br>
  <code>Book1.getBooknumber(), Book1.getBooktitle(),...,Book3.getBookprice().</code></p>
  
  <p>How do I realize this: <code>books[3][4] array</code>. </p>
  
  <p>I can't call it <code>String books[][] = new String [3][4]</code>. Because I can't get <code>Booknumber (int)</code> into it.  I don't want Booknumber to be String neither Bookprice. How do I realize it, please?</p>
  
  <p>To further elaborate it.  I have 2 classes:  book and bookUI.</p>
  
  <p><strong>book</strong></p>
  
  <pre><code>public class book{
  String Booktitle, Booklanguage;
  int Booknumber, Bookprice;
  
  //constructor
  
  //get
  
  //set
  }
  </code></pre>
  
  <p><strong>bookUI</strong></p>
  
  <pre><code>public class bookUI
  {
   public static void main(String arg[])
   {
     book book1 = new book();
     book book2 = new book();
     book book3 = new book();
  
     book1.setBooktitle();
     ...
     book3.setBookprice();
  
     //Here I want to have books[3][4] Array. And gettin the data via book1.get...book3.get into the array
   }
  }
  </code></pre>