title: Cannot resolve symbol 'get' in Android Studio in Recyclerview
body: <p>In the <code>onBindViewHolder</code> I get error</p>
  
  <blockquote>
    <p>'cannot resolve symbol 'get'</p>
  </blockquote>
  
  <p>and also the <code>getHead</code> and <code>getDesc</code> are not working though I have created public Strings in the <code>Listitem</code> class.</p>
  
  <p>My android studio version is 2.3.3,<br>
  API level is 22 android 5.1,<br>
  Build tool version is  25.0.3.   </p>
  
  <pre><code>package com.example.kanase.recyclerviewapp;  
  
  import android.content.Context;   
  import android.support.v7.widget.RecyclerView;   
  import android.view.LayoutInflater;  
  import android.view.View;  
  import android.view.ViewGroup;  
  import android.widget.TextView;  
  
  import java.util.List;
  
  public class MyAdapter extends RecyclerView.Adapter&lt;MyAdapter.ViewHolder&gt; {
  
  private List&lt;Listitem&gt; listItems;
  private Context context;
  
  public MyAdapter(List&lt;Listitem&gt; listItems, Context context) {
      this.listItems = listItems;
      this.context = context;
  }
  
  @Override
  public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View v = LayoutInflater.from(parent.getContext())
              .inflate(R.layout.list_item , parent ,false );
      return new ViewHolder(v);
  }
  
  @Override
  public void onBindViewHolder(ViewHolder holder, int position) {
  
      Listitem listitem =new listItems.get(position);
      holder.textViewHead.setText(listItems.getHead());
      holder.textViewDesc.setText(listItems.getDesc());
  }
  
  @Override
  public int getItemCount() {
      return listItems.size();
  }
  
  public class ViewHolder extends RecyclerView.ViewHolder{
      public TextView textViewHead;
      public TextView textViewDesc;
  
      public ViewHolder(View itemView) {
          super(itemView);
  
          textViewHead =(TextView) itemView.findViewById(R.id.textViewHead);
          textViewDesc =(TextView) itemView.findViewById(R.id.textViewDesc);
      }
  }
  </code></pre>
  
  <p>This is Listitem class:</p>
  
  <pre><code>package com.example.kanase.recyclerviewapp;
  
  public class Listitem {
      private String head;
      private String desc;
  
      public Listitem(String head, String desc) {
          this.head = head;
          this.desc = desc;
      }
  
      public String getHead() {
          return head;
      }
  
      public String getDesc() {
          return desc;
      }
  }
  </code></pre>