title: How to wrap arraylist of string in 'for' function
body: <p>I want to wrap the arraylist of string in 'for' function with usage of simpleXML, retrofit.
  How to do it?</p>
  
  <pre><code>error:add(com.flower.model.FlowerModel in FlowerModel cannot be applied to(java.lang.String)
  </code></pre>
  
  <p><strong>In main fragment</strong>:</p>
  
  <pre><code>if (response.body().getFlower()!=null){
       for (String flower: response.body().getFlower()){
            FlowerAdapter.add(flower);
       }
  
  }
  </code></pre>
  
  <p><strong>FlowerAdapter.java</strong>:</p>
  
  <pre><code>public void add(FlowerModel model){
          models.add(model);
          notifyDataSetChanged();
      }
  </code></pre>
  
  <p><strong>ResponseFlower.java</strong>:</p>
  
  <pre><code>@Root(name="response",strict = false)
  public class ResponseFlower extends ResponseBase{
  
      @Path("result")
      @ElementArray(entry = "flower")
  
      private String[] flowerslist;
  
      public String[] getFlowerlist() {
          return flowerslist;
      }
  }
  </code></pre>
  
  <p><strong>XML Format</strong>:
  </p>
  
  <pre><code>&lt;response&gt;
      &lt;responseId&gt;12345&lt;/responseId&gt;
      &lt;status&gt;SUCCESS&lt;/status&gt;
      &lt;result&gt;
          &lt;flowers&gt;
              &lt;flower&gt;Lily&lt;/flower&gt;
              &lt;flower&gt;Rose&lt;/flower&gt;
              &lt;flower&gt;Lavender&lt;/flower&gt;
          &lt;/flowers&gt;
      &lt;/result&gt;
  &lt;/response&gt;
  </code></pre>