Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/02/2016, 03:57
geovadavid
 
Fecha de Ingreso: febrero-2016
Mensajes: 3
Antigüedad: 8 años, 2 meses
Puntos: 0
Respuesta: Convertir de Arreglo a Cadena en Java

ok, muchas gracias por la observacion asi lo hare.....!!!!


Código Java:
Ver original
  1. ArrayList<String> listaCursos = new ArrayList();
  2.        
  3.         if(chkPhp.isSelected()) listaCursos.add(chkPhp.getText());
  4.         if(chkJava.isSelected()) listaCursos.add(chkJava.getText());
  5.         if(chkMysql.isSelected()) listaCursos.add(chkMysql.getText());
  6.         if(chkHtml.isSelected()) listaCursos.add(chkHtml.getText());
  7.         if(chkCss.isSelected()) listaCursos.add(chkCss.getText());
  8.        
  9.         String cursos = String.join(", ", listaCursos);        
  10.         txtResultado.setText(cursos);
  11.                
  12.         // Y ESTA LISTO PARA SER ENVIADO A LA BASE DE DATOS
  13.         //objDatos.setCursos(cursos);

Gracias amigo!!!