Pages

Saturday 22 October 2016

Appending or Concatenating Strings

Appending two strings

${'{0} {1}' @ format=[properties.property1,properties.property2]}

In other way

${[properties.property1,properties.property1] @ join=' '}
 

  This shows that we are appending two strings with a single white space. You can use any other elements/characters.

No comments:

Post a Comment

Converting InputStream to String

    private String convertToString(InputStream inputStreamObj)             throws IOException {         if (inputStreamObj != null) {     ...