Java BigDecimal

  • + 0 comments

    in the Java8 version they (I don't know how intentionally) added two empty cells in the array:

    String []s=new String[n+2];
    

    You must remove them ... or you'll get an NPE in the new BigDecimal(s[i])