title: Add String Variable To List (Keep Adding To List)
body: <p>Question 1:</p>
  
  <p>I have a function that is called every time I get a new Lat Long value, I would like to add these Lat Long values to a list but every time I get a new value the list is over written with the last value (not appended). </p>
  
  <p>My code (with only latitude)</p>
  
  <pre><code>    public void getDistance() {
  
      List&lt;String&gt; list = new ArrayList&lt;String&gt;();
      list.add(latitudeString);
  
      System.out.println("list: "+list);  
  }
  </code></pre>
  
  <p>Question 2:</p>
  
  <p>Once I have values in the list (which will increase as values change) I would like to get the last two values everytime the list changes and perform some function (get distance between last two Lat Long values in list and so on..)</p>