Pregunta de entrevista de Amentra

Write a function that returns whether one string is a sub-string of another.

Respuestas de entrevistas

Anónimo

2 de nov de 2010

use string regex matching.

Anónimo

10 de mar de 2011

In Java the standard method is String.indexOf(String) ... e.g., if(aString.indexOf("help") >= 0) System.out.println("help is contained in " + aString);