i cannot use my arraylist in class fragment : i try to use arraylist in fragment
my arraylist not work in fragment class.
please help me fix this
before i use this code in main activity, and then i added menu fragment i move this code to this fragment

and then my **arraylist** get error

```
public class HomeFragment extends Fragment {

    RecyclerView mRecyclerView;
    MyAdapter myAdapter;

    public HomeFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View v =  inflater.inflate(R.layout.fragment_home, container, false);


        mRecyclerView = v.findViewById(R.id.recyclerView);
        mRecyclerView.setLayoutManager(new RelativeLayout(this)); 

        myAdapter = new MyAdapter(this, getMyList());
        mRecyclerView.setAdapter(myAdapter);

        return v;
    }

    private ArrayList<Model> getMyList(){

        ArrayList<Model> models = new ArrayList<>();

        Model m = new Model();
        m.setTitle("Al-Lahab");
        m.setDescription("Surah Al-Lahab adalah surat ke-111 dalam Al-Qur'an.");
        m.setDetails("تَبَّتْ يَدَا أَبِي لَهَبٍ وَتَبّ\n"     
        );

        m.setImg(R.drawable.al_lahab);
        models.add(m);

        return  models;
    }
```