
13/04/2010, 09:33
|
 | | | Fecha de Ingreso: diciembre-2009
Mensajes: 20
Antigüedad: 15 años, 1 mes Puntos: 0 | |
Respuesta: ayuda clase string amigo usa este codigo: Cita: String cadena = "SELECT NOMBRE, APELLIDO, DIRECCION, CAMPO4,CAMPO5,CAMPO6 FROM TABLAX";
int inicioFrom = 0;
for (int i = 0; i < cadena.length(); i++) {
if (cadena.substring(i, (i + 4)).equals("FROM")) {
inicioFrom = i;
break;
}
}
System.out.println(cadena.substring(6, inicioFrom)); |