title: Add Lat and Long to ArrayList
body: <p>I am new to Android. In my code i want to add 1000 Markers on my map. I know how to create the the array with Lat-long and i know how to create markers.</p>
  
  <p>i create my markers like this:</p>
  
  <pre><code>protected void createMarker(Double latitude, Double longitude) {
  
          LatLng latLong = new LatLng(latitude, longitude);
  
          map.addMarker(new MarkerOptions()
                  .position(latLong)
                 // .title(title)
                  .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_map_marker)));
  
      }
  </code></pre>
  
  <p>and add LatLog to my arrayList like this:</p>
  
  <pre><code>locations.add(new LatLng(-08.8123083,13.2249500));
  locations.add(new LatLng(-08.8265861,13.2274667));
  locations.add(new LatLng(-08.8328611,13.2182861));
  </code></pre>
  
  <p>My problem is that the way i add LaLng to my array i will get a lot of code if i add 1000 LatLong.
  Please show the better way to do it.</p>
  
  <p>Thanks </p>