SHARE
TWEET

Untitled

a guest Dec 9th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public int findBayOfCar(int carNumber) {
  2.         int count = 0;
  3.         for (int i=0;i<cars.length;i++) {
  4.              if (!isEmpty(i)) {
  5.                 ++count;
  6.                 if(count == carNumber) {
  7.                     return i;
  8.                 }
  9.              }
  10.         }
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top