How to split the string in java?
<pre><code>String str = "AlwinX-road-9:00pm-kanchana travels-25365445421";
String[] names = str.split("-");
</code></pre>

<p>I want output like following:</p>

<blockquote>
  <p>AlwinX-road<br/>
  9:00pm<br/>
  kanchana travels<br/>
  25365445421</p>
</blockquote>
