Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Displayer {
- }
- //This is part of a Java program
- //(not a complete Java program).
- roomNum = 1;
- while (roomNum < 100) {
- if (guests[roomNum] == 0) {
- out.println("Room " + roomNum
- + " is available.");
- exit(0);
- } else {
- roomNum++;
- }
- }
- out.println("No vacancy");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement