Java - Pasar de ArrayList objeto a Array String

 
Vista:
Imágen de perfil de Leidy Johan Contreras

Pasar de ArrayList objeto a Array String

Publicado por Leidy Johan Contreras (14 intervenciones) el 10/10/2016 17:59:53
Hola Colegas:

Necesito saber si es posible Parsear un ArrayList tipo Object (listadoPersonas(Persona)) a un Array tipo String (ArrayPersonas(String))

Tengo el siguiente código pero no funciona:

ArrayList<Caficultor> listadoCaficultorList = new ArrayList<Caficultor>();
String [] listaCaficultor =(String[]) listadoCaficultorList.toArray();

Agradecería de corazón su colaboración.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder