RE: RE:Question

One of the questions asked in my previous interviews.

Write a code to find the occurrence of sub string in string.

Q: String str = “helloslkhellodjladfjhello”;
String substring = “hello”;

Tried checking in google, but didn’t understand the code.It would be great if someone can help me..

Thanks in Advance.

Add Comment
1 Answers

Doctor Answered on May 25, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.