Hello Kailash Bisht,
Welcome to CodeRanch!
Plese,
UseCodeTags. As of now, I've edited your post and added code tags. It makes much easier for others to read the code.
Secondly, please
SearchFirst. Did you tried by inserting all those given lines? Did you see what kind of outputs are produced by those?
Once you've done that, and if you still have doubt(s) about any specific option, please feel free to ask.
I hope this helps.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)