Dado a string “XYZ8679MAISVOCEDiaTarde” informar
ALGUÉM PODERIA ME AJUDAR EU PRECISO DAR A POSIÇÃO DE INICIO E FIM DA EXPRESSÃO DIA DA STRING
Me ajuda
R
2 Respostas
D
Direto da API:
indexOf
public int indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring. The integer returned is the smallest value k such that:
this.startsWith(str, k)
is true.
Parameters:
str - any string.
Returns:
if the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does not occur as a substring, -1 is returned.
R
AMIGUINHO LESGAU MAS TEM COMO TRADUZIR
POR FAVOR
Criado 1 de março de 2005
Ultima resposta 1 de mar. de 2005
Respostas 2
Participantes 2
Alura O que é Python? — um guia completo para iniciar nessa linguagem de programação Acesse agora o guia sobre Python e inicie sua jornada nessa linguagem de programação: o que é e para que serve, sua sintaxe e como iniciar nela!
Casa do Codigo Engenharia de Prompt para Devs: Um guia para aprender a... Por Ricardo Pupo Larguesa — Casa do Codigo