implemented array based room storage in java