title: Java, moving robot
body: <p>Method pickUpNBeepersCheckIfAll() that takes an integer parameter, and makes the most recently created robot pick up that number of beepers from the beeper stack at its current location.
  You can assume that there are enough beepers in the stack for the robot to do this safely.
  The method should return true if the robot has picked up all the beepers at its current location, or false if there are still beepers on the ground.</p>
  
  <p>My method:</p>
  
  <pre><code>boolean pickUpNBeepersCheckIfAll(int beeper) {
      int counter=0;
          while(beeper&gt;counter) {
              pickUpItemWithRobot(); 
              counter++;
              beeper--;
              if(beeper==0) return true;
          } 
       return false;
     }
  </code></pre>
  
  <p>Here is my code, and I can't find a mistake, because there are four outcomes:
  pick Up Random Beepers (not all), pick up one beeper, pick up 10 beepers and pick up zero beepers. SO here I have 2 mistakes here.</p>