how to pass string from intent to secendactivity(not working) : I send my string with intent but when I run program stobed.
here is my mainActivivty



    list = (ListView) findViewById(R.id.list);
     list.setOnItemClickListener(new AdapterView.OnItemClickListener()
        {
            @Override
            public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3)
            {
                Intent intent =new Intent(getApplicationContext(),LAstActivity.class);
                intent.putExtra("name",notes.get(position));
                startActivity(intent,my);

            }
        });

and  secendActivivty

        protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_last);


        TextView tv=findViewById(R.id.textView5);
        Intent intent = getIntent();
        String data = intent.getStringExtra("name");
        tv.setText(data);
    }