Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not sure where should I give this minor heads up regarding the JEP:

  StringProcessor INTER = (StringTemplate st) -> {
      String placeHolder = "•";
      String stencil = String.join(placeHolder, fragments);
      for (Object value : st.values()) {
          String v = String.valueOf(value);
          stencil = stencil.replaceFirst(placeHolder, v);
      }
    return stencil;
  };
‘fragments’ should be ‘st.fragments()’ here I believe to make it compile.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: