join a string array java code example
Example 1: join array java
String joinedString = String.join(", ", strArray);
Example 2: joining an array of strings in java
// my linkedin : https://www.linkedin.com/in/vaalarivan-prasanna-3a07bb203/
array = new ArrayList<String> {"daddy", "Mummy", "Son"}; //array initialisation
String str = String.join("", array);
//str = daddyMummySon
Example 3: join strings in java
String a = "Hello";
String b = " World";
String c = a+b;