title: how to split the string and store it in array
body: <p>I have tried the following example but it gives following out put
  <code>output[]</code>. I have pass the string "1.0" to function <code>calculatePayout()</code> and want to store the 1 in <code>s[0]</code> and 0 in <code>s[1]</code></p>
  
  <pre><code>import java.util.Arrays;
  
  
      public class aps {
  
          public void calculatePayout(String amount)
          {
              String[] s = amount.split(".");
              System.out.println("output"+Arrays.toString(s));
          }
  
      public static void main(String args[])
      {
          new aps().calculatePayout("1.0");
      }
      }
  </code></pre>