code: public static String[] split(String str, String delim, int size) {
          String[] arr1 = new String[size];
          String[] arr2 = split(str, delim);
          for (int i = 0; i < arr1.length; i++) {
              if (i < arr2.length) {
                  arr1[i] = arr2[i];
              } else {
                  arr1[i] = EMPTY;
              }
          }
          return arr1;
      }
docs: Returns an array of strings separated by the delimiter string.
  
  @param str the string to be separated
  @param delim the delimiter
  @param size the size of the array
  @return an array, containing the splitted strings