Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/08/2008, 02:57
Tecnitek
 
Fecha de Ingreso: agosto-2008
Mensajes: 11
Antigüedad: 15 años, 9 meses
Puntos: 0
Pasar Objeto a String

Buenas, tengo una función que me retorna un objeto y no se como convertirla a String para meterla en una lista Strings.

Se trata de un programa que filtra links, que encontré la referencia en este mismo foro y me gustaría hacer algunas pruebas.

Os pego un poco de codigo a ver si me podeis ayudar
Código PHP:

List <StringNodosN = new ArrayList <String>();

while ((
elem it.next()) != null) {
        
SimpleAttributeSet s = (SimpleAttributeSet)
        
elem.getAttributes().getAttribute(HTML.Tag.A);
        if (
!= null);
            
NodosN.add(s.getAttribute(HTML.Attribute.HREF));
            
System.out.println(transformar);
        }

Gracas