title: RecyclerView Adapter :OnBindViewHolder
body: <p>Why do we use something like this to populate the recyclerview with data?  Can't we just create a simple array of string like <strong>String[] titles</strong> and display them, like in ListView?</p>
  
  <pre><code>List&lt; Information&gt; data
  
  public void onBindViewHolder(MyViewHolder holder, int position) {
      Information current = data.get(position);
      holder.title.setText(current.title);
      holder.icon.setImageResource(current.iconId);
  }
  </code></pre>
  
  <p>I recently watched a video on how to work with recyclerview and I can't understand why we have to create another class of information and then again create its array inside <strong>onBindViewHolder</strong> to show data. </p>
  
  <p>Can anybody help me understand this code?</p>