Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. public class Displayer {
  3.  
  4. }
  5.  
  6. //This is part of a Java program
  7. //(not a complete Java program).
  8. roomNum = 1;
  9. while (roomNum < 100) {
  10. if (guests[roomNum] == 0) {
  11. out.println("Room " + roomNum
  12. + " is available.");
  13. exit(0);
  14. } else {
  15. roomNum++;
  16. }
  17. }
  18. out.println("No vacancy");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement