I am receiving an arrangement from one Activity to another as follows:
List<Producto> productos = new ArrayList<Producto>();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_carrito);
productos = (ArrayList<Producto>) getIntent().getSerializableExtra("Productos");
and it does not mark me an error, but when executing it, it sends me this error.
java.lang.String can not be cast to java.util.ArrayList
How do I solve it?