title: Could''t view the data on RecyclerView in android
body: <p>I am trying to view data on <code>RecyclerView</code>. I got an error on from these two lines    </p>
  
  <pre><code> mAdapter = new Adapter(stu); in this line getting Error on Adapter is abstract
  </code></pre>
  
  <p>I'm a beginner of android .can someone helps me fix this problem. view the data on <code>RecyclerView</code>. my database name is StudentDB
  it has a table name record.record table data I need to view on <code>RecyclerView</code> </p>
  
  <p>I attached the full codes below</p>
  
  <p><strong>view.xml</strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/rs1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".view1"&gt;    
      &lt;android.support.v7.widget.RecyclerView
          android:layout_width="368dp"
          android:layout_height="495dp"
          tools:layout_editor_absoluteX="8dp"
          tools:layout_editor_absoluteY="8dp" /&gt;    
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>view.java</strong></p>
  
  <pre><code> public class view1 extends AppCompatActivity {
      private RecyclerView recyclerView;
      RecyclerView.Adapter mAdapter;
      private RecyclerView.LayoutManager layoutManager;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_view1);
  
          SQLiteDatabase db = openOrCreateDatabase("StudentDB", Context.MODE_PRIVATE, null);
          final Cursor c = db.rawQuery("select * from record", null);
          int id = c.getColumnIndex("id");
          final int name = c.getColumnIndex("name");
          final int age = c.getColumnIndex("age");
          c.moveToFirst();
  
          recyclerView = (RecyclerView) findViewById(R.id.rs1);
          layoutManager = new LinearLayoutManager(this);
          recyclerView.setLayoutManager(layoutManager);
  
          final List&lt;student&gt; stud;
          if (c.moveToFirst()) {
              do {
                  student stu = new student();
                  stu.id = c.getString(id);
                  stu.name = c.getString(name);
                  stu.age = c.getString(age);
                  //you need to add the Student object stu not the ArrayList Object stud
                  mAdapter = new Adapter(stu);
                  recyclerView.setAdapter(mAdapter);
              } while (c.moveToNext());
  
          }
      }
  
  }
  </code></pre>
  
  <p><strong>Student Class</strong></p>
  
  <pre><code>public class student {
  
      String id;
      String name;
      String age;
      String titles;
  }
  </code></pre>