I'm not 100 percent sure because I'm also a novice but I think the problem is that you have the parenthesis in there. Room is not a function so you do not need parenthesis.
new Room()[roomDensity];
should become:
new Room[roomDensity];
↧