Interview Solution

First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. George Carrette

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.