Interview Solution

A programmer is a person who passes as an exacting expert on the basis of being able to turn out, after innumerable punching, an infinite series of incomprehensive answers calculated with micrometric precisions from vague assumptions based on debatable figures taken from inconclusive documents and carried out on instruments of problematical accuracy by persons of dubious reliability and questionable mentality for the avowed purpose of annoying and confounding a hopelessly defenseless department that was unfortunate enough to ask for the information in the first place. Grid newsmagazine

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.