title: How to retrieve data from array?
body: <p>I am writing a program for a hotel booking system. I currently have the room info in an array and I wish the customer to enter the ID of the room and it will retrieve all the details for that certain room. Here is the code for the array: </p>
  
  <pre><code>  Room [] rooms = 
    {
      new Room("GARDEN0001", "NorthWest Garden View", 45.00),
      new Room("GARDEN0002", "SouthEast Garden View", 65.0),
      new Room("GARDEN0003", "North Garden View", 35.00),
      new Room("GARDEN0004", "South Garden View", 52.0),
      new Room("GARDEN0005", "West Garden View", 35.00),
      new Room("GARDEN0006", "East Garden View", 35.00)      
    };
  </code></pre>
  
  <p>The format is ID, Description, Price. </p>
  
  <p>Thanks in advance</p>