title: Inventory system for a text based adventure game in Java
body: <p>I'm making a text based adventure game in Java. I need to give the user the ability to pick up items and put them in an inventory, but I'm not really sure how!</p>
  
  <p>This is how my items are currently set up:</p>
  
  <pre><code>Items item0 = new Items(0);
      item0.setName("Map");
  
  
      Items item1 = new Items(1);
      item1.setName("Sword");
  
      Items[] itemize  = new Items[2];
      itemize[0] = item0;
      itemize[1] = item1;
  </code></pre>
  
  <p>I need to be able to have specific items in certain rooms. Does anyone have any suggestions? </p>