I want to create all possible consecutive combinations about a particular delimiter from a given String.

For example:

`String s = "a\\b\\c\\d"` and `String delimiter = "\\\\"`

Using

```
`String[] split = s.split(delimiter);`

```

returns 

```
 `{"a","b","c","d"}`

```

But I want to get:

`{"a","b","c","d","a\\b","b\\c","c\\d","a\\b\\c","b\\c\\d"};`

How can I do this? Not necessarily using split