split from full stop in java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7935858/the-split-method-in-java-does-not-work-on-a-dot">The split() method in Java does not work on a dot (.)</a>  </p>
</blockquote>



<p>I'm new to java. I want to split a String from "." (dot) and get those names one by one. But this program gives error:  <code>"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0"</code>
please help me</p>

<pre><code> String input1 = "van.bus.car";

 System.out.println(input.split(".")[0]+"");

 System.out.println(input.split(".")[1]+"");

 System.out.println(input.split(".")[2]+"");
</code></pre>
