title: How to print out a random String from an array in Java
body: <p>Hi I have been trying to make my first game for a while but have run into difficulty. I want to pull a randomized String from an array of Strings and then print it out but I have errors in my code. I have looked all over but I can't find the solution. Here is the code:
  (I have already declared the currentRoom varible)</p>
  
  <pre><code>      int currentRoom;
  String [][] rooms = {{"Start", "Treasure Room1"}, {"Goblin Home1", "Spider Nest1"}};
  
  Random rand = new Random()
  currentRoom = rooms [rand.nextInt( rooms.length)];
  
  
  System.out.println(currentRoom);
  </code></pre>
  
  <p>I have an error on my currentRoom variable in line 6 and I think that is messing everything up, but I don't know so the mistake could be anywhere.</p>
  
  <p>Any help is appreciated:)</p>