ARRAYLIST EN VERSIONES ANTERIORES A 1.5
Hola me gustaria que alguien me dijese como puedo definir el arraylist para que me compile en versiones anteriores a la 1.5 ya que yo lo defino con < ...> Y ME HAN EXPLICADO COMO PASARLO PERO NO LO HE ENTENDIDO MUY BIEN.OS MANDO UN TROZO DE CODIGO DE MI PROGRAMA Y SI ALGUIEN ES TAN AMABLE DE PASARLO SE LO AGRADECERIA.
GRACIAS
public ArrayList<Pasajero> obtenerPasajero() {
ArrayList<Pasajero> pasaj = new ArrayList<Pasajero> ();
pasaj.add(pasajero);
return pasaj;
}
GRACIAS
public ArrayList<Pasajero> obtenerPasajero() {
ArrayList<Pasajero> pasaj = new ArrayList<Pasajero> ();
pasaj.add(pasajero);
return pasaj;
}