I cannot able to add strings to my array list : 

public class Thirdfragment extends Fragment {

    List names = new ArrayList();


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

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {



        ParseQuery<ParseObject> query = ParseQuery.getQuery("serviceop");

        query.findInBackground(new FindCallback<ParseObject>() {
            public void done(List<ParseObject> objects, ParseException e) {
                if (e == null) {




                    if (objects.size() > 0) {

                        for (ParseObject object : objects) {

                            String Currentdatatype = object.getString("name");

                       names.add("s");

                       Log.d("added",Currentdatatype);

                        }


                    } else {

                        Log.d("no data","left or right");


                    }
                } else {
                    Log.d("awserror","left or right");
                }
            }
        });



    // Inflate the layout for this fragment
        View rootView = inflater.inflate(R.layout.fragment_blank, container, false);

        RecyclerView rv = (RecyclerView) rootView.findViewById(R.id.rv_recycler_view);
        rv.setHasFixedSize(true);

        System.out.println("Using for loop");
        System.out.println("--------------");
        for (int i = 0; i < names.size(); i++) {
            System.out.println(names.get(i));
        }

        System.out.println(names.size());
        MyAdapter adapter = new MyAdapter(new String[]{"ssd","sd"});
        rv.setAdapter(adapter);

        LinearLayoutManager llm = new LinearLayoutManager(getActivity());
        rv.setLayoutManager(llm);

        return rootView;
    }

}


i need little hand here because i kept on trying add strings but the size of the names is still showing me 0 i dont why it is happening, in the logcat i dont see any values it still showing me the null value,    i cannnot able to post log values here because the stack overflow is not accepting my question and they were showing some errors