Generating String Tokens in Java
<p>I want to generate possible tokens using forward traversal in Java. For example if I have a string "This is my car". I need to generate tokens </p>

<ul>
<li>"This is my car"</li>
<li>"This is my"</li>
<li>"This is"</li>
<li>"This"</li>
<li>"is my car"</li>
<li>"is my"</li>
<li>"is"</li>
<li>"my car"</li>
<li>"my"</li>
<li>"car"</li>
</ul>

<p>What is the best way to do this? Any examples? Thanks.</p>
