String#split

  1. String s = "0.0";
  2. String[] split = s.split("\\.");

使用正则时别忘记加 \\