Added method getRoomIndex() in MainActivity.java. Return an index
value(integer) base from user input.