Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public boolean hayNumSillasEconomicasLibresPasilloVentana(int nSillas)
  2. {
  3.  
  4. int darSillasLibres = contarSillasEconomicasDesocupadasPasillo() + contarSillasEconomicasDesocupadasVentana();
  5. int contador = 0;
  6.  
  7.  
  8. for (int i = 0;i <= darSillasLibres;i++ )
  9. {if (sillasEconomicas[i].sillaAsignada( ) == false &&
  10. sillasEconomicas[i].darUbicacion( ) != Silla.CENTRAL)
  11. contador ++;
  12. else if (contador >= nSillas)
  13. return true;
  14. }
  15.  
  16. return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement