code: private double getMinStringSize(String[] tTokens, String[] uTokens) {
      double tSize = 0, uSize = 0;
      for (int i = 0; i < tTokens.length; i++) {
        tSize += tTokens[i].length();
      }
      for (int i = 0; i < uTokens.length; i++) {
        uSize += uTokens[i].length();
      }
      return Math.min(tSize, uSize);
    }
docs: getMinStringSize count the number of characters in String array tTokens and
  String array uTokens and return the minimun size.
  
  @param tTokens String[]
  @param uTokens String[]
  @return double