Interview Solution

A computer lets you make more mistakes faster than any invention in human history–with the possible exceptions of handguns and tequila. Mitch Radcliffe

Find substring

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm

Comments


Interview Problem

Find a substring of given string without using the build in functions.
Write program to find a particular string in another string without using any inbuilt String class methods
Example:-
string "how" inside "how are you "


Output

   					 
string 'how' contains 'how are you': true
string 'hello' contains 'world': false


				    

Comments



Please login to add comments.