This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
ed spithaler wrote:I am using an arraylist to store the room info, but when I print the room list I get strange characters that look like hex.
Nothing strange about it. Check out the source code for Object#toString()
To get your desired output, you need to
1) Provide appropriate getter methods in your Room class. eg.getRoomNum, isSmoking* etc
2) When you are iterating over theRooms, call these methods and print the values
*I notice you have defined smoking as a char. If it is going to indicate yes/no, then it would be a better idea to define it as a boolean like you have done for occupied
PS. You can also override the toString() in your Room class to return the appropriate text you want.