We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
In this Java example, we join strings with the String.join() method.
public class Java8StringJoinExample { public static void main(String[] args) { String join = String.join("/", "2019", "07", "11"); System.out.println(join); } }
Output:
2019/07/11
The String.join() method internally uses the StringJoiner.
A date is concatenated with the String.join() method:
String join = String.join("/", "2019", "07", "11");