title: Setting value for specified object
body: <p>I assume those are bacics.</p>
  
  <p>I've created 3 objects like this:</p>
  
  <pre><code>    for (int j = 1; j &lt; 4; j++) {
          int parkingSlot= 1 + rd.nextInt(3);
          AircraftCarrier ac= new AircraftCarrier (fc, j, parkingSlots, parkingSlots);
  
      }
  </code></pre>
  
  <p>Based on class AircraftCarrier (it's constructor):</p>
  
  <pre><code>public AircraftCarrier (FlightControl fc, int idC, int parkingSlots, int freeParkingSlots) {
      this.kontrolaLotow = fc;
      this.id = idC;
      this.ps = parkingSlots;
      this.fps = freeParkingSlots;        
  }
  </code></pre>
  
  <p>So i have 3 Aircraft Carriers, right? Let's assume I need to change freeParkingSLots value for a carrier with id =2. How do I do that?</p>