[Solved] Split a string into parts
I assume that your expected output is bye see you.If I understood correctly then following methods can be used to get the desired output: In this string splits into an array(splits()) with delimiter ” ” and find index of bye (j)and you(k) in the array then using a for loop to get strings in the … Read more