Buscador de oraciones

Crea una función que devuelva la primera oración completa que contenga una palabra específica. Incluye el punto final al final de la oración.

Ejemplos

final String str1 = "For the love of Tesh. She is the love of my life. I am all hers.";
final String str2 = "I have a cat. I have a mat. Things are going swell.";

sentenceSearcher(str1, "LOVE") ➞ "For the love of Tesh."

sentenceSearcher(str1, "LIFE") ➞ "She is the love of my life."

sentenceSearcher(str1, "hers") ➞ "I am all hers."

sentenceSearcher(str2, "MAT") ➞ "I have a mat."

sentenceSearcher(str2, "things") ➞ "Things are going swell."

sentenceSearcher(str2, "flat") ➞ ""

Notas

  • Las oraciones siempre terminarán con un punto.
  • Tu función no debe distinguir entre mayúsculas y minúsculas.
  • Devuelve una cadena vacía si no se encuentra la palabra en la oración.