title: How to clear List<String>
body: <p>I need help for list clearing, I taking data from database and I need to clear it after every row.</p>
  
  <pre><code>  for (HashMap&lt;String, String&gt; hashMap : data16) {
          List&lt;String&gt; arrayList111 = new ArrayList&lt;&gt;();
          for (String value1 : hashMap.values()) {
             // arrayList111.removeAll(arrayList111);
              uzsakymas111[l] = value1 ;
              Collections.addAll(arrayList111, uzsakymas111);
              arrayList111.removeAll(Collections.singleton(null));
              String vupvup = Integer.toString(l+1);
              expandableListDetail.put(vupvup,arrayList111);
              l++;
  
          }
  
      }
  </code></pre>
  
  <p>Can you say me how and where I have to use .clear() function ,because now its not helping.</p>