Tema: split
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/10/2006, 16:02
Avatar de stock
stock
 
Fecha de Ingreso: junio-2004
Ubicación: Monterrey NL
Mensajes: 2.390
Antigüedad: 20 años, 7 meses
Puntos: 53
Código PHP:
public class Split {
    public static 
void main(String[] arg){
        
String frase "cosas a separar en este texto";
        
String palabras[] = frase.split(" ");
        
        for(
int i=0;i<palabras.length;i++){
            
System.out.println(palabras[i]);
        }
    }

have funnnnnnnnnnn