title: create an Array in android studio with google maps API to store markers
body: <p>I would really appreciate some help with this problem. I have tried many different solutions i'v found on here and none of them seem to work for me. I have a google map activity in my app on android studio. Currently my users can click on the map to drop pins. The code for that is as follows.</p>
  
  <pre><code>mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {
  
      @Override
      public void onMapClick(LatLng latLng) {
  
      // Creating a marker
      MarkerOptions markerOptions = new MarkerOptions();
  
      // Setting the position for the marker
      markerOptions.position(latLng);
  
      // Setting the title for the marker.
      // This will be displayed on taping the marker
      markerOptions.title(latLng.latitude + " : " + latLng.longitude);
  
      // Animating to the touched position
      mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));
  
      // Placing a marker on the touched position
      mMap.addMarker(markerOptions);
  
          }
      });
  </code></pre>
  
  <p>What i require is the lat and long for each marker dropped to be saved into an array. It will be possible for the users to drop as many pins as they require. I have tried to implement this with a for loop but i have had no luck. If someone could show me how to set up the array and save all the information into it it would be greatly appreciated. </p>
  
  <p>Regards Peakapot</p>