Given a string:
String words = \"Mary had a little lamb\";
how to obtain a combination of sentence fragments while the order of occurrence of w
You have 4 word delimiters (spaces) here. Every space may be replaced (or not) by sentence delimiter. So there are 16 = 2^4 cases, which correspond to binary numbers 0000...1111.