I want to split string without using split . can anybody solve my problem I am tried but
I cannot find the exact logic.
I want to split string without using split . can anybody solve my problem
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m going to assume that this is homework, so I will only give snippets as hints:
Finding indices of all occurrences of a given substring
Here’s an example of using
indexOfwith thefromIndexparameter to find all occurrences of a substring within a larger string:String API links
int indexOf(String, int fromIndex)Related questions
Extracting substrings at given indices out of a string
This snippet extracts
substringat given indices out of a string and puts them into aList<String>:Some key ideas:
String API links
String substring(int beginIndex, int endIndex)beginIndexand extends to the character at indexendIndex - 1.Related questions