Cuenta cuentaUno = new Cuenta(100,30,uno);
Cuenta cuentaDos = new Cuenta(80,30,dos);
Cuenta cuentaTres = new Cuenta(20,35,tres);
Cuenta cuentaCuatro = new Cuenta(120,150,cuatro);
Cuenta cuentaCinco = new Cuenta(0,200,cinco);
ArrayList<Cuenta> cuentas = new ArrayList();
cuentas.add(cuentaUno);
cuentas.add(cuentaDos);
cuentas.add(cuentaTres);
cuentas.add(cuentaCuatro);
cuentas.add(cuentaCinco);
Collections.sort(cuentas);
I want to sort the list but in the sort I get an error:
The method sort (List) in the type Collections is not applicable for the arguments (ArrayList)