Java - Duda con cadena String

 
Vista:

Duda con cadena String

Publicado por Juan (30 intervenciones) el 16/03/2009 12:04:38
Hola mi duda es si puedo buscar en una cadena como hago con el indexOf("") pero empezar a buscar desde la derecha no desde la izquierda.
Gracias
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

RE:Duda con cadena String

Publicado por 1a2a3a4a (57 intervenciones) el 16/03/2009 19:10:35
int lastIndexOf(int ch, int fromIndex)
Returns the index within this string of the last occurrence of the specified character, searching backward starting at the specified index.
int lastIndexOf(String str)
Returns the index within this string of the rightmost occurrence of the specified substring.
int lastIndexOf(String str, int fromIndex)
Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar