6 Replies Latest reply: Oct 2, 2007 8:44 AM by 807605 RSS

    String split issue

    807605
      I have next code:

      -------------------
      public static String value = "470.0";
      public static String arr[] = new String[2];

      arr = value.split(".");

      System.out.println(arr[0]);
      System.out.println(arr[1]);
      -------------------

      I recieve a runtime exception: "ArrayIndexOutOfBoundsException: 0"

      What is wrong in my code?