code: private static int[] toBoundaries(String str) {
      int[] res = new int[9];
      String[] split = str.split("\\s+");
      for (int i = 0; i < 9; i++) {
        res[i] = Integer.valueOf(split[i]).intValue();
      }
      return res;
    }
docs: Converts a param string to boundaries array.
  
  @param str
  @return